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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
xor edi, edi
mov ebp, dword [esi]
push esi
xor ebx, ebx
mov dword [esp + 0x14], edi
call fcn.004983b0
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp ecx, edi
mov dword [esp + 0x14], eax
jge 0x4923d4
mov edx, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov cl, byte [edx + 0x18]
push ecx
push 0x7c
push eax
call fcn.004870f0
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x4924b9
push 0
push 0x84
push ebp
call fcn.00485d60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x49245e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x492453
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
mov edx, dword [esp + 0x44]
movsx edx, word [edx + 0x24]
cmp edx, eax
jne 0x492423
or eax, 0xffffffff
mov edx, dword [esp + 0x54]
lea eax, [eax + edx + 1]
mov dword [esi + 0x18], eax
mov dl, byte [ecx + 0x15]
mov byte [esi + 1], dl
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x492440
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.0048bfd0
add esp, 0xc
mov esi, eax
jmp 0x49245e
mov edx, dword [esp + 0x54]
mov byte [esi + 1], 0x64
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49246b
mov eax, dword [eax + edi*4]
jmp 0x492472
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + eax*8]
push eax
push 0x1a
push ebp
call fcn.00485d60
mov edx, dword [esp + 0x48]
push 0
push eax
push esi
push 0x4c
push edx
call fcn.00485da0
push eax
push ebx
push ebp
call fcn.00485e80
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x2c
inc edi
cmp edi, dword [eax + 0x14]
jl 0x4923e3
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [edx]
jne 0x492528
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x492528
push 0
push 0x84
push ebp
call fcn.00485d60
push 0
push 0x98
push ebp
mov edi, eax
call fcn.00485d60
add esp, 0x18
test edi, edi
je 0x49250f
test eax, eax
je 0x49250f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x18], ecx
mov byte [edi + 1], 0x64
mov ecx, dword [edx + 0x34]
mov word [eax + 0x1c], 0xffff
mov dword [eax + 0x18], ecx
push 0
push eax
push edi
push 0x4b
push esi
call fcn.00485da0
push eax
push ebx
push ebp
call fcn.00485e80
add esp, 0x20
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
call fcn.0048a830
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
call fcn.0049ffc0
mov ecx, dword [esp + 0x7c]
add esp, 0x24
test ecx, ecx
mov edi, eax
jle 0x492584
mov eax, dword [esp + 0x4c]
mov dl, byte [eax + 0x18]
test dl, dl
jne 0x492584
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x492580
mov esi, eax
mov byte [esi + 0x18], 1
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
push ecx
xor ecx, ecx
mov cl, byte [edx + 0x18]
push ecx
push 0x7b
push esi
call fcn.004870f0
add esp, 0x10
test edi, edi
je 0x4925ab
push edi
call fcn.004a6830
add esp, 4
push ebx
push ebp
call fcn.0047d560
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4925c7
push eax
push esi
call fcn.00487110
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret