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

Disassembly:
push 0xffffffffffffffff
push 0x5c41f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x70a108]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a108]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1dc]
mov bl, byte [esp + 0x1d4]
mov edi, ecx
mov eax, esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x17], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d37e8
sub eax, edx
mov ebp, eax
cmp ebp, 0x3c
jle 0x4d3866
movzx eax, bl
lea ebx, [edi + eax*4 + 0x96e0]
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 + 0xc0]
lea edi, [ecx + 0x3b]
push edi
push esi
push edx
call fcn.00589a30
mov edx, dword [esp + 0x1e4]
mov ecx, dword [ebx]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push edx
mov byte [esp + edi + 0xd0], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0xd0]
push edx
call eax
add esi, edi
sub ebp, edi
cmp byte [esi], 0x20
jne 0x4d3861
inc esi
cmp ebp, 0x3c
jg 0x4d3802
test ebp, ebp
jle 0x4d3a86
push esi
lea ecx, [esp + 0x24]
call fcn.0042d290
push 0xa
xor ebp, ebp
push ebp
push str.ItemDBIdx:
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1d8], 0
call fcn.0042c5c0
mov edi, eax
test edi, edi
js 0x4d3a4d
push 1
push ebp
push 0x5d93a0
lea ecx, [esp + 0x2c]
call fcn.0042c5c0
push eax
push ebp
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042d260
mov edx, dword [esp + 0x34]
push edx
add edi, 0xa
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1d8], 1
call fcn.0042d260
push 1
push ebp
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 2
mov byte [esp + 0x24], 0xfa
call fcn.0042c5c0
mov edi, eax
test edi, edi
js 0x4d3a2b
push edi
push ebp
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x4c]
call fcn.0042d260
mov eax, dword [esp + 0x54]
push eax
inc edi
push edi
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 3
call fcn.0042d260
mov eax, dword [esp + 0xa4]
mov ebx, 0x10
mov byte [esp + 0x1cc], 4
cmp dword [esp + 0xb8], ebx
jae 0x4d395f
lea eax, [esp + 0xa4]
push eax
call fcn.00587dd0
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], ebx
jae 0x4d3981
lea eax, [esp + 0x84]
push eax
call fcn.00587dd0
add esp, 4
test ebp, ebp
je 0x4d3a03
test eax, eax
je 0x4d3a03
push eax
mov ecx, 0x71ae70
call fcn.004aad20
test eax, eax
je 0x4d3a03
lea edi, [eax + 2]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d39b0
sub eax, edx
add eax, dword [esp + 0x74]
cmp eax, 0x80
jae 0x4d3a03
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d39d0
sub eax, edx
push eax
push 0
push esi
call fcn.00585ff0
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], ebx
jae 0x4d39f3
lea eax, [esp + 0x64]
push edi
push eax
push str._s:_s
push esi
call fcn.00586b40
add esp, 0x10
lea ecx, [esp + 0x80]
mov byte [esp + 0x1cc], 3
call fcn.0042cd50
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1cc], 2
call fcn.0042cd50
lea ecx, [esp + 0x40]
mov byte [esp + 0x1cc], 1
call fcn.0042cd50
lea ecx, [esp + 0x60]
mov byte [esp + 0x1cc], 0
call fcn.0042cd50
movzx eax, byte [esp + 0x17]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4 + 0x96e0]
mov eax, dword [esp + 0x1d8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
push ebp
push 0
push 0xffffffffffffffff
push eax
push esi
call edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.0042cd50
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.00586d40
add esp, 0x1bc
ret 0xc
sub esp, 0x90
mov eax, dword [0x70a108]
xor eax, esp
mov dword [esp + 0x8c], eax
mov dl, byte [esp + 0x94]
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov ebp, ecx
mov eax, esi
push edi
mov dword [esp + 0x14], ebp
mov byte [esp + 0xf], dl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d41a4
sub eax, edi
push ebx
mov ebx, eax
cmp ebx, 0x3c
jle 0x4d4246
movzx eax, dl
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ebp + ecx*4 + 0x4694]
mov dword [esp + 0x14], edx
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 + 0x1c]
lea edi, [ecx + 0x3b]
push edi
push esi
push edx
call fcn.00589a30
push pe_nt_image_headers32
mov byte [esp + edi + 0x2c], 0
call fcn.00586f10
mov ebp, eax
push 0x100
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 4]
push ecx
call fcn.00528b30
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ebp
mov dword [ebp], edx
call fcn.00580500
add esi, edi
sub ebx, edi
cmp byte [esi], 0x20
jne 0x4d423d
inc esi
cmp ebx, 0x3c
jg 0x4d41d0
mov ebp, dword [esp + 0x18]
test ebx, ebx
pop ebx
jle 0x4d428d
push pe_nt_image_headers32
call fcn.00586f10
mov edi, eax
push 0x100
lea eax, [edi + 4]
push esi
push eax
call fcn.00528b30
movzx eax, byte [esp + 0x1f]
mov ecx, dword [esp + 0xb4]
lea edx, [eax*8]
add esp, 0x10
sub edx, eax
mov dword [edi], ecx
push edi
lea ecx, [ebp + edx*4 + 0x4694]
call fcn.00580500
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00586d40
add esp, 0x90
ret 0xc
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4d445e
mov ecx, eax
jmp 0x4d3790
jmp 0x4d4170