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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 9
jne 0x48282c
test byte [esi + 0x64], 1
je 0x48282c
mov dword [esi + 0x40], 1
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x5c]
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x482b44
mov eax, dword [esi + 0x64]
test al, 2
jne 0x4829a4
mov ebx, dword [esp + 0x4c]
mov ecx, eax
and ecx, 4
mov dword [esp + 0x14], ecx
je 0x482930
test bl, 4
je 0x482872
mov edx, dword [esi + 0x54]
push ebp
push edx
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
test bl, 8
je 0x48288a
push 0
push 0x7fff
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
test bl, 0x10
je 0x4828bc
mov eax, dword [esi + 0x78]
test eax, eax
je 0x482997
mov eax, dword [0x514498]
mov ecx, dword [0x513b68]
mov edx, dword [esi + 0x48]
add ecx, eax
push 0
lea eax, [edx + ecx*2]
mov ecx, esi
push eax
call fcn.00482bc0
jmp 0x4829a8
mov ebp, dword [esp + 0x50]
cmp ebp, 0xffffffff
je 0x48291d
lea eax, [esp + 0x24]
push eax
call dword [0x4de5cc]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 2
push ecx
push edx
mov ecx, esi
call fcn.004c0613
mov eax, ebx
and eax, 0x20
je 0x482903
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edx
push eax
add ecx, ebp
push ecx
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ecx, edx
push eax
add ecx, ebp
push ecx
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
test al, 1
je 0x482930
mov eax, dword [esi + 0x54]
push 0
push eax
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
test bl, 2
je 0x48296f
test bl, 1
je 0x482877
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x482877
mov ecx, esi
call fcn.004b1640
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x4de798]
mov eax, dword [esp + 0x3c]
push 0
push eax
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
mov eax, dword [esi + 0x78]
test eax, eax
je 0x482997
mov eax, dword [esi + 0x48]
mov ebp, dword [0x513b68]
mov edx, dword [0x514498]
add eax, ebp
add eax, edx
push 0
shl eax, 1
push eax
mov ecx, esi
call fcn.00482bc0
jmp 0x4829a8
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00482bc0
jmp 0x4829a8
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00482df0
mov edx, dword [eax]
test bl, 0x40
mov eax, dword [eax + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
je 0x482b3c
mov ecx, dword [esi + 0x58]
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x482a97
mov eax, edi
test byte [eax + 4], 1
je 0x4829ed
cmp dword [eax], 0
je 0x4829ed
inc ebp
add eax, 0x10
dec ecx
jne 0x4829e1
test ebp, ebp
jle 0x482a97
lea ecx, [ebp + ebp*2]
shl ecx, 3
push ecx
call fcn.004b424c
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x482a18
dec ebp
mov dword [esp + 0x50], ebp
jmp 0x482a1a
xor eax, eax
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x10], eax
cmp ecx, ebx
mov dword [esp + 0x50], ebx
jle 0x482a93
mov ebp, edi
lea edi, [eax + 8]
test byte [ebp + 4], 1
je 0x482a88
cmp dword [ebp], 0
je 0x482a88
mov dword [edi - 8], ebx
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
mov dword [edi - 4], edx
mov eax, dword [esi]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xe0]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.004b8175
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
inc ecx
add edi, 0x18
mov dword [eax + 0xc], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esi + 0x58]
inc ebx
add ebp, 0x10
cmp ebx, eax
jl 0x482a2e
mov ebp, dword [esp + 0x50]
mov eax, dword [esi + 0x64]
test al, 1
je 0x482aa9
test al, 4
je 0x482aa9
mov eax, dword [esp + 0x24]
mov dword [esi + 0x54], eax
test ebp, ebp
jle 0x482b3c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ebp
lea ebx, [ecx + 8]
mov edx, dword [ebx - 4]
mov ecx, esi
push edx
call fcn.004b3df1
test eax, eax
mov dword [esp + 0x14], eax
je 0x482b21
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x4de794]
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx]
mov edi, dword [esp + 0x34]
mov edx, dword [ebx - 8]
sub ebp, ecx
lea ecx, [esp + 0x34]
sub edi, eax
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0x15
add ebp, ecx
mov ecx, dword [esp + 0x18]
push 0
add edi, eax
push 0
push ebp
push edi
push 0
call fcn.004b4086
mov eax, dword [esp + 0x50]
add ebx, 0x18
dec eax
mov dword [esp + 0x50], eax
jne 0x482abc
mov edx, dword [esp + 0x10]
push edx
call fcn.004b4275
add esp, 4
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
call dword [0x4de5cc]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x34]
and edi, 2
push edi
push ecx
mov ecx, esi
call fcn.004c0613
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
sub edx, ecx
add ebx, edx
mov edx, dword [esp + 0x3c]
sub eax, edx
push edi
add ebp, eax
mov eax, dword [esp + 0x50]
and eax, 1
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004bf7a4
mov eax, dword [esp + 0x14]
cmp ebp, eax
jg 0x482b9e
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x18]
cmp ebx, eax
jg 0x482bac
mov dword [esp + 0x28], eax
mov ebx, eax
mov eax, dword [esp + 0x48]
pop edi
pop esi
mov dword [eax], ebp
mov dword [eax + 4], ebx
pop ebp
pop ebx
add esp, 0x34
ret 0xc