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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x50
push ebx
push esi
mov esi, dword [esp + 0x5c]
push edi
push ebp
push 1
push eax
push esi
call fcn.004856e0
mov ebp, eax
add esp, 0xc
mov ebx, eax
and ebp, 0xff
mov dword [esp + 0x1c], 0
push ebx
push esi
call fcn.004b3a60
mov dword [esp + 0x20], eax
add esp, 8
push ebx
push esi
call fcn.004b38c0
mov dword [esp + 0x48], 0xfffffffe
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], eax
add esp, 8
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], 0
push eax
mov edx, dword [ecx]
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
push edx
push esi
call fcn.00496aa0
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x54]
mov dword [esp + 0x34], eax
add esp, 0xc
push ecx
push edx
push esi
call fcn.004855f0
add esp, 0xc
test eax, eax
jne case.default.0x484fe2
mov eax, dword [esp + 0x6c]
push 7
push eax
push esi
call fcn.004856e0
add esp, 0xc
mov edi, eax
test edi, edi
je 0x484eee
push 0xe
push edi
push esi
call fcn.004856e0
mov dword [esp + 0x20], eax
add esp, 0xc
cmp ebp, 0x2b
jne 0x484fb5
test byte [esp + 0x29], 1
je 0x484f91
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [eax], 0
mov dword [eax + 4], 0
push esi
call fcn.00485680
add esp, 0xc
test eax, eax
jne case.default.0x484fe2
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
push esi
call fcn.00484e20
add esp, 0x18
test eax, eax
jne case.default.0x484fe2
lea eax, [esp + 0x28]
push eax
push edi
push esi
call fcn.0048a6e0
add esp, 0xc
cmp dword [esp + 0x28], 0
jne 0x484f85
cmp byte [esp + 0x2c], 0x7f
jne 0x484f85
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 4], eax
jmp 0x48525a
mov ecx, dword [esp + 0x78]
mov dword [ecx + 4], edi
jmp 0x48525a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push eax
push ecx
push esi
call fcn.004853c0
mov dword [esp + 0x1c], eax
add esp, 0xc
test eax, eax
jne 0x4850d3
jmp case.default.0x484fe2
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push eax
push ecx
push esi
call fcn.004853c0
mov dword [esp + 0x1c], eax
add esp, 0xc
test eax, eax
je case.default.0x484fe2
mov eax, dword [esp + 0x34]
dec eax
cmp eax, 3
ja case.default.0x484fe2
jmp dword [eax*4 + 0x4852ac]
test byte [esp + 0x29], 4
je case.0x484fe2.3
cmp ebp, 5
jl 0x485003
cmp ebp, 6
jle 0x48500b
cmp ebp, 0x2d
je 0x48500b
push 1
push 4
push 0xb
jmp 0x485011
push 1
push 4
push 0xf
push esi
call fcn.004b3930
add esp, 0x10
push ebx
push eax
push esi
call fcn.004b3980
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x10]
push 0
push 0
push ebx
push 1
push eax
push esi
call fcn.0048a410
add esp, 0x18
mov ebp, ebx
and ebp, 0xff
push ebx
push esi
call fcn.004b38c0
mov dword [esp + 0x3c], eax
add esp, 8
jmp case.0x484fe2.3
cmp ebp, 0xf
je 0x485074
cmp ebp, 0xb
je 0x485074
mov eax, dword [esp + 0x74]
movsx ecx, word [eax + 4]
cmp ecx, dword [esp + 0x18]
jge case.0x484fe2.3
mov ecx, dword [esp + 0x78]
mov dword [ecx], ebx
jmp case.0x484fe2.3
mov ecx, dword [esp + 0x78]
mov dword [ecx], 0xf
cmp bl, 0xf
jne 0x485087
push 0xb
jmp 0x485088
push ebx
push esi
call fcn.004b3a60
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
add esp, 8
cmp dword [eax + 0xc], 0
jle 0x4850d3
test byte [esp + 0x29], 2
je 0x4850d3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
push esi
call fcn.004852c0
add esp, 0x14
test eax, eax
jne case.default.0x484fe2
mov dword [esp + 0x54], 0
movsx eax, word [esp + 0x4c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x4850e2
mov eax, ecx
mov word [esp + 0x4c], ax
test edi, edi
mov dword [esp + 0x38], 0
je 0x4851c2
lea eax, [esp + 0x20]
push 0xe
mov dword [esp + 0x18], 0
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
push esi
call fcn.004856e0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
add esp, 0xc
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x78]
push eax
push esi
call fcn.00484e20
add esp, 0x18
test eax, eax
jne case.default.0x484fe2
cmp dword [esp + 0x24], 0
lea eax, [esp + 0x28]
push eax
jne 0x485151
push edi
jmp 0x485156
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.0048a6e0
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push 0xffffffffffffffff
push ecx
push edx
push 0
push esi
call fcn.00489ec0
add esp, 0x1c
test eax, eax
jne case.default.0x484fe2
cmp dword [esp + 0x20], 0
je 0x4851ac
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004b3a60
add esp, 8
cmp eax, dword [esp + 0x38]
jle 0x4851ac
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
push 0x10
push edi
push esi
call fcn.004856e0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4850f7
cmp dword [esp + 0x1c], 0
je 0x485219
cmp dword [esp + 0x34], 2
jne 0x48520f
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x18]
jle 0x48520f
cmp bl, 0x2b
je 0x48520f
mov eax, dword [esp + 0x1c]
cmp ebp, 0xe
jne 0x4851fa
mov edx, dword [esp + 0x1c]
push 1
push 0x2c
push edx
push esi
call fcn.004b3930
add esp, 0x10
push 0
push 0
push eax
push 3
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0048a410
add esp, 0x18
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
je 0x48525a
lea eax, [esp + 0x28]
push ecx
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ebx, dword [esp + 0x48]
mov dword [eax + 8], ecx
lea eax, [esp + 0x2c]
mov byte [esp + 0x30], 0x7f
push eax
push 0xffffffffffffffff
push edx
push ebx
push ecx
push esi
call fcn.00489ec0
add esp, 0x1c
test eax, eax
jne case.default.0x484fe2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], 0
cmp dword [esp + 0x40], 0
je 0x485288
cmp dword [esp + 0x10], 0
je 0x485288
mov eax, dword [esp + 0x10]
push 1
push eax
push esi
call fcn.00489e50
mov dword [esp + 0x1c], 0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x48]
mov dword [eax], ecx
push edx
push esi
call fcn.00485660
mov eax, dword [esp + 0x48]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50
ret