Function at 0x40777a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x52c010
jmp 0x52af90
jmp 0x52bd50
sub esp, 0x194
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b0]
mov ebx, ecx
mov eax, edi
mov dword [esp + 0x14], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52afb0
sub eax, edx
mov ebp, eax
cmp ebp, 0x3c
jle 0x52b034
movzx eax, byte [esp + 0x1a8]
lea ebx, [ebx + eax*4 + 0x96e0]
nop
lea esi, [edi + 0x3c]
push esi
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
xor ecx, ecx
cmp esi, eax
sete cl
lea edx, [esp + 0xa4]
lea esi, [ecx + 0x3b]
push esi
push edi
push edx
call fcn.0060c660
mov edx, dword [esp + 0x1b8]
mov ecx, dword [ebx]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push edx
mov byte [esp + esi + 0xb4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0xb4]
push edx
call eax
add edi, esi
sub ebp, esi
cmp byte [edi], 0x20
jne 0x52b02f
inc edi
cmp ebp, 0x3c
jg 0x52afd0
xor ebx, ebx
cmp ebp, ebx
jle 0x52b2c8
mov eax, edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b053
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.0040cb0d
push 0xa
push ebx
push str.ItemDBIdx:
lea ecx, [esp + 0x5c]
xor ebp, ebp
call fcn.00407333
mov esi, eax
cmp esi, ebx
jl 0x52b289
push 1
push ebx
push 0x650cdc
lea ecx, [esp + 0x5c]
call fcn.00407333
push eax
push ebx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.00408cf1
mov edx, dword [esp + 0x60]
push edx
add esi, 0xa
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00408cf1
push 1
push ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0xfa
call fcn.00407333
mov esi, eax
cmp esi, ebx
jl 0x52b249
push esi
push ebx
lea edx, [esp + 0x20]
mov ebp, 0xf
push edx
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00408cf1
mov eax, dword [esp + 0x28]
push eax
inc esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00408cf1
mov eax, dword [esp + 0x88]
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jae 0x52b16c
lea eax, [esp + 0x88]
push eax
call fcn.0060a9a4
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x52b185
lea eax, [esp + 0x34]
push eax
call fcn.0060a9a4
add esp, 4
cmp ebp, ebx
jbe 0x52b20b
cmp eax, ebx
jbe 0x52b20b
push eax
mov ecx, 0x7b5bb8
call fcn.004010fa
cmp eax, ebx
je 0x52b20b
lea esi, [eax + 2]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b1b0
sub eax, edx
add eax, dword [esp + 0x7c]
cmp eax, 0x80
jae 0x52b206
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b1d0
sub eax, edx
push eax
push ebx
push edi
call fcn.00609d70
mov eax, dword [esp + 0x78]
add esp, 0xc
cmp dword [esp + 0x80], 0x10
jae 0x52b1f6
lea eax, [esp + 0x6c]
push esi
push eax
push str._s:_s
push edi
call fcn.0060a295
add esp, 0x10
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x52b21e
mov eax, dword [esp + 0x34]
push eax
call fcn.0060a4fb
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x9c], esi
jb 0x52b24e
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0060a4fb
add esp, 4
jmp 0x52b24e
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x52b261
mov edx, dword [esp + 0x18]
push edx
call fcn.0060a4fb
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x80], esi
jb 0x52b28e
mov eax, dword [esp + 0x6c]
push eax
call fcn.0060a4fb
add esp, 4
jmp 0x52b28e
mov esi, 0x10
movzx ecx, byte [esp + 0x1a8]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + ecx*4 + 0x96e0]
mov edx, dword [esp + 0x1ac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
push ebp
push ebx
push 0xffffffffffffffff
push edx
push edi
call eax
cmp dword [esp + 0x64], esi
jb 0x52b2c8
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0060a4fb
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret 0xc
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
mov ebp, ecx
mov ebx, esi
push edi
mov dword [esp + 0x10], ebp
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x52bd70
sub ebx, ecx
cmp ebx, 0x3c
jle 0x52be16
movzx eax, byte [esp + 0x9c]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ebp + ecx*4 + 0x4694]
mov dword [esp + 0x14], edx
mov edi, edi
lea edi, [esi + 0x3c]
push edi
push esi
call dword [sym.imp.USER32.dll_CharPrevA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
xor ecx, ecx
cmp edi, eax
sete cl
lea edx, [esp + 0x18]
lea edi, [ecx + 0x3b]
push edi
push esi
push edx
call fcn.0060c660
push pe_nt_image_headers32
mov byte [esp + edi + 0x28], 0
call fcn.0060a537
mov ebp, eax
push 0x100
lea eax, [esp + 0x2c]
push eax
lea ecx, [ebp + 4]
push ecx
call fcn.00404b7e
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ebp
mov dword [ebp], edx
call fcn.00603ac0
add esi, edi
sub ebx, edi
cmp byte [esi], 0x20
jne 0x52be0d
inc esi
cmp ebx, 0x3c
jg 0x52bda0
mov ebp, dword [esp + 0x10]
test ebx, ebx
jle 0x52be5f
push pe_nt_image_headers32
call fcn.0060a537
mov edi, eax
push 0x100
lea eax, [edi + 4]
push esi
push eax
call fcn.00404b7e
movzx eax, byte [esp + 0xac]
mov ecx, dword [esp + 0xb0]
lea edx, [eax*8]
add esp, 0x10
sub edx, eax
mov dword [edi], ecx
push edi
lea ecx, [ebp + edx*4 + 0x4694]
call fcn.00603ac0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x52c01e
mov ecx, eax
jmp 0x40bee7
jmp 0x40f155