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

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
sub esp, 0xec
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
mov ebp, ecx
jle 0x482c4f
test esi, esi
jle 0x482691
mov edi, dword [ebp + eax*4 + 0x30c]
mov ebx, dword [ebp + 0x36c]
imul edi, edx
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
add edi, dword [ecx + ebx]
mov cl, byte [edi + esi - 1]
test cl, cl
jl 0x48271a
test edx, edx
jle 0x4826ba
lea edi, [edx - 1]
mov ebx, dword [ebp + 0x36c]
imul edi, dword [ebp + eax*4 + 0x30c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
add edi, dword [ecx + ebx]
cmp byte [edi + esi], 0
jl 0x48271a
mov ecx, dword [ebp + eax*4 + 0x30c]
cmp esi, ecx
jge 0x4826e4
imul ecx, edx
mov ebx, dword [ebp + 0x36c]
lea edi, [eax*4]
mov dword [esp + 0x10], edi
add ecx, dword [edi + ebx]
mov bl, byte [ecx + esi + 1]
test bl, bl
jl 0x48271a
cmp edx, dword [ebp + eax*4 + 0x1c2c]
jge 0x482c4f
lea edi, [edx + 1]
mov ebx, dword [ebp + 0x36c]
imul edi, dword [ebp + eax*4 + 0x30c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
add edi, dword [ecx + ebx]
cmp byte [edi + esi], 0
jge 0x482c4f
mov ecx, dword [0x520f58]
mov ebx, dword [esp + 0x100]
add ecx, esi
mov dword [esp + 0x56], ecx
in al, dx
or eax, 0x52b748
add ecx, edx
mov edx, dword [ebp + ebx*4 + 0x1c8]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x8c]
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [eax + edx*2 + 0x20], ecx
mov dword [esp + 0x14], esi
jmp 0x482762
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + eax*4 + 0x34c]
mov eax, dword [esi + 0x520f23]
imul eax, ecx
fild dword [ebp + 0xed8]
cdq
sub eax, edx
mov edx, ecx
imul edx, dword [esp + 0x108]
sar eax, 1
sub esp, 8
lea edi, [eax + edx]
mov eax, dword [esi + 0x520ee8]
imul eax, ecx
imul ecx, dword [esp + 0x114]
cdq
sub eax, edx
mov dword [esp + esi + 0x30], edi
sar eax, 1
add ecx, eax
mov dword [esp + 0x24], edi
mov dword [esp + esi + 0x60], ecx
mov esi, ecx
mov dword [esp + 0x5c], esi
mov ecx, dword [ebp + 0x138]
fild dword [esp + 0x5c]
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp + 0x134]
fdiv st(1)
sub edi, ecx
mov ecx, ebp
fstp dword [esp + 4]
fild dword [esp + 0x24]
fdiv st(1)
fstp dword [esp]
push eax
push edi
fstp st(0)
call fcn.004853e0
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00485260
mov edi, dword [esp + 0x24]
and eax, 0xff
shl eax, 0x18
push eax
push esi
push edi
mov ecx, ebp
call fcn.00484d70
or eax, 0xff000000
lea ecx, [esp + 0x8c]
push eax
push esi
push edi
push ecx
mov ecx, ebp
call fcn.00483820
push eax
lea ecx, [esp + 0x4c]
call fcn.004849d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
add eax, 4
mov ecx, 0xc80007
lea esi, [esp + 0x38]
add edx, 0x1c
cmp eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x482757
mov edx, dword [esp + 0x34]
add eax, 0xbb8e0fd2
add byte [eax], al
add byte [ebx + 0x10424b4], cl
add byte [eax], al
mov eax, dword [ebp + esi*4 + 0x30c]
cmp edx, eax
jge 0x48291e
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x48291e
cmp ecx, dword [ebp + esi*4 + 0x32c]
jge 0x48291e
mov edi, dword [ebp + 0x36c]
imul eax, ecx
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + edi]
cmp byte [eax + edx], 0
jg 0x48291e
mov edx, dword [esp + 0xc8]
mov eax, dword [0x520ec8]
mov ecx, dword [0x520ea8]
mov edi, dword [esp + 0x108]
push edx
mov edx, dword [esp + 0x110]
push 1
push ebx
push eax
lea eax, [ecx + edx*2]
mov ecx, dword [0x520e88]
dec esi
push eax
lea edx, [ecx + edi*2]
mov ecx, ebp
push edx
push esi
call fcn.004815a0
mov eax, dword [esp + 0xc8]
mov ecx, dword [0x520ecc]
inc ebx
adc eax, 0x520eac
push eax
mov eax, dword [esp + 0x110]
push 1
push ebx
push ecx
lea ecx, [edx + eax*2]
mov edx, dword [0x520e8c]
push ecx
mov ecx, ebp
lea eax, [edx + edi*2]
push eax
push esi
call fcn.004815a0
jmp 0x4829ce
lea edx, [esp + 0x8c]
mov dword [esp + 0x1c], 3
mov eax, dword [ebp + ebx*4 + 0x1c8]
mov esi, edx
add edx, 0x1c
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp + ebx*4 + 0x188]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + ebx*4 + 0x1c8]
inc esi
dec eax
mov dword [ebp + ebx*4 + 0x1c8], esi
mov dword [esp + 0x1c], eax
jne 0x48292d
mov eax, dword [ebp + ebx*4 + 0x1e8]
mov edx, dword [ebp + ebx*4 + 0x1a8]
mov edi, dword [esp + 0x108]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x18]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp + ebx*4 + 0x1e8]
mov esi, dword [ebp + ebx*4 + 0x1a8]
lea edx, [eax + 1]
lea ecx, [ecx + ecx*2]
mov word [esi + ecx*2 + 2], dx
mov ecx, dword [ebp + ebx*4 + 0x1a8]
lea edx, [eax + 2]
mov eax, dword [ebp + ebx*4 + 0x1e8]
lea eax, [eax + eax*2]
mov word [ecx + eax*2 + 4], dx
mov eax, dword [ebp + ebx*4 + 0x1e8]
inc eax
mov dword [ebp + ebx*4 + 0x7301e8], eax
mov edx, dword [0x520f5c]
mov eax, dword [0x520f4c]
mov ecx, dword [esp + 0x10c]
add edx, edi
add eax, ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebp + ebx*4 + 0x1c8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x8c]
xor esi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jmp 0x482a0e
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x104]
mov eax, dword [esi + 0x520f24]
mov ecx, dword [ebp + ecx*4 + 0x34c]
imul eax, ecx
cdq
sub eax, edx
mov edx, ecx
imul edx, dword [esp + 0x108]
sar eax, 1
lea edi, [eax + edx]
mov eax, dword [esi + 0x520ef4]
imul eax, ecx
imul ecx, dword [esp + 0x10c]
cdq
sub eax, edx
mov dword [esp + esi + 0x80], edi
sar eax, 1
add eax, ecx
mov ecx, ebp
mov dword [esp + esi + 0x58], eax
push eax
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00485300
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 4
mov ecx, 7
add edx, 0x1c
cmp eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x482a0a
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x482b59
mov edi, dword [esp + 0x104]
cmp ecx, dword [edx + eax*2 + 0x30c]
jge 0x482b59
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x482b59
cmp eax, dword [ebp + edi*4 + 0x32c]
jge 0x482b59
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00485430
test al, al
jg 0x482b59
mov ecx, dword [esp + 0xc8]
mov edx, dword [0x520ed0]
mov eax, dword [0x520eb0]
push ecx
mov ecx, dword [esp + 0x110]
push 1
push ebx
push edx
lea edx, [eax + ecx*2]
mov eax, dword [0x520e90]
mov ecx, dword [esp + 0x118]
push edx
lea esi, [edi - 1]
lea edx, [eax + ecx*2]
mov ecx, ebp
push edx
push esi
call fcn.004815a0
mov eax, dword [esp + 0xc8]
mov ecx, dword [0x520ed4]
mov edx, dword [0x520eb4]
push eax
mov eax, dword [esp + 0x110]
push 1
push ebx
push ecx
lea ecx, [edx + eax*2]
mov edx, dword [0x520e94]
mov eax, dword [esp + 0x118]
push ecx
lea ecx, [edx + eax*2]
push ecx
push esi
mov ecx, ebp
call fcn.004815a0
jmp 0x482c09
lea edx, [esp + 0x8c]
mov dword [esp + 0x1c], 3
mov eax, dword [ebp + ebx*4 + 0x1c8]
mov esi, edx
add edx, 0x1c
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp + ebx*4 + 0x188]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + ebx*4 + 0x1c8]
inc esi
dec eax
mov dword [ebp + ebx*4 + 0x7f0001c8], esi
mov dword [esp + 0x1c], eax
jne 0x482b68
mov eax, dword [ebp + ebx*4 + 0xd201e8]
mov edx, dword [ebp + ebx*4 + 0x1a8]
mov edi, dword [esp + 0x104]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x34]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp + ebx*4 + 0x1e8]
mov esi, dword [ebp + ebx*4 + 0x1a8]
lea edx, [eax + 1]
lea ecx, [ecx + ecx*2]
mov word [esi + ecx*2 + 2], dx
mov ecx, dword [ebp + ebx*4 + 0x1a8]
lea edx, [eax + 2]
mov eax, dword [ebp + ebx*4 + 0x1e8]
lea eax, [eax + eax*2]
mov word [ecx + eax*2 + 4], dx
mov eax, dword [ebp + ebx*4 + 0x1e8]
inc eax
mov dword [ebp + ebx*4 + 0x1e8], eax
mov esi, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push 0
push 0
push ebx
push 2
push esi
push edx
push edi
mov ecx, ebp
call fcn.004820b0
mov eax, dword [esp + 0x108]
push 0
push 0
js 0x482c9f
add edx, dword [esi + 0x50]
push edi
mov ecx, ebp
call fcn.004820b0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xec
ret 0x10
mov eax, dword [ebp + eax*4 + 0x34c]
mov ebx, dword [esp + 0x100]
mov ecx, eax
imul ecx, esi
mov esi, eax
mov dword [esp + 0x58], ecx
imul esi, edx
lea edx, [eax + ecx]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
lea edx, [eax + esi]
mov dword [esp + 0x6c], esi
or dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
cdq
sub eax, edx
mov edx, dword [ebp + ebx*4 + 0x1c8]
sar eax, 1
add ecx, eax
add eax, esi
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
jmp 0x482cb9
mov eax, dword [esp + 0x10]
mov esi, dword [esp + eax + 0x6c]
mov edi, dword [esp + eax + 0x58]
push esi
lea eax, [esp + 0x84]
push edi
push eax
mov ecx, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], edi
call fcn.00483820
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ecx
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.00484d70
fild dword [ebp + 0xed8]
fild dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
or eax, 0xff000000
mov dword [esp + 0x3c], edx
fdiv st(1)
mov dword [esp + 0x44], eax
mov eax, dword [ebp + ebx*4 + 0x1c8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x30]
lea edx, [eax*8]
mov dword [esp + 0x40], ecx
sub edx, eax
mov eax, dword [ebp + ebx*4 + 0x188]
mov ecx, 7
lea esi, [esp + 0x38]
lea edi, [eax + edx*4]
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
fstp dword [esp + 0x4c]
fild dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
mov esi, dword [ebp + ebx*4 + 0x1c8]
inc esi
cmp eax, 0x14
mov dword [ebp + ebx*4 + 0x1c8], esi
jl 0x482cb5
xor ecx, ecx
mov dword [esp + 0x20], 0x5209d8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx