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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xec
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
mov ebp, ecx
jle 0x4dcba3
test esi, esi
jle 0x4dc5e6
mov edi, dword [ebp + eax*4 + 0x30c]
mov edx, dword [esp + 0x10c]
imul edi, edx
mov ebx, dword [ebp + 0x36c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
add edi, dword [ecx + ebx]
mov cl, byte [edi + esi - 1]
test cl, cl
jl 0x4dc676
jmp 0x4dc5ed
mov edx, dword [esp + 0x10c]
test edx, edx
jle 0x4dc616
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 0x4dc676
mov ecx, dword [ebp + eax*4 + 0x30c]
cmp esi, ecx
jge 0x4dc640
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 0x4dc676
cmp edx, dword [ebp + eax*4 + 0x32c]
jge 0x4dcbaa
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 0x4dcbaa
mov ecx, dword [0x5cee24]
mov ebx, dword [esp + 0x100]
add ecx, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [0x5cee14]
add ecx, edx
mov edx, dword [ebp + ebx*4 + 0x1c8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x8c]
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
jmp 0x4dc6be
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + eax*4 + 0x34c]
mov eax, dword [esi + 0x5cede4]
imul eax, ecx
fild dword [ebp + 0xed8]
cdq
sub eax, edx
mov edx, ecx
imul edx, dword [esp + 0x108]
sar eax, 1
lea edi, [eax + edx]
mov eax, dword [esi + 0x5cedb4]
imul eax, ecx
imul ecx, dword [esp + 0x10c]
cdq
sub eax, edx
mov dword [esp + esi + 0x28], edi
sar eax, 1
add eax, ecx
push ecx
mov dword [esp + esi + 0x5c], eax
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], edi
fild dword [esp + 0x28]
sub eax, dword [ebp + 0x138]
fdiv st(1)
fstp dword [esp]
fild dword [esp + 0x58]
push ecx
mov ecx, edi
fdiv st(1)
fstp dword [esp]
push eax
mov eax, dword [ebp + 0x134]
sub ecx, eax
push ecx
mov ecx, ebp
fstp st(0)
call fcn.004e16b0
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.004e03b0
and eax, 0xff
mov ecx, ebp
shl eax, 0x18
push eax
push esi
push edi
call fcn.004df140
or eax, 0xff000000
lea edx, [esp + 0x8c]
push eax
push esi
push edi
push edx
mov ecx, ebp
call fcn.004dd790
push eax
lea ecx, [esp + 0x4c]
call fcn.00427900
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 4
mov ecx, 7
add edx, 0x1c
cmp eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jl 0x4dc6b3
mov edx, dword [esp + 0x34]
test edx, edx
jle 0x4dc872
mov esi, dword [esp + 0x104]
mov eax, dword [ebp + esi*4 + 0x30c]
cmp edx, eax
jge 0x4dc872
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x4dc872
cmp ecx, dword [ebp + esi*4 + 0x32c]
jge 0x4dc872
mov edi, dword [ebp + 0x36c]
imul eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + edi]
add ecx, eax
cmp byte [ecx + edx], 0
jg 0x4dc872
mov edx, dword [esp + 0xc8]
mov eax, dword [0x5ced94]
mov ecx, dword [0x5ced74]
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 [0x5ced54]
dec esi
push eax
lea edx, [ecx + edi*2]
mov ecx, ebp
push edx
push esi
call fcn.004db4b0
mov eax, dword [esp + 0xc8]
mov ecx, dword [0x5ced98]
mov edx, dword [0x5ced78]
push eax
mov eax, dword [esp + 0x110]
push 1
push ebx
push ecx
lea ecx, [edx + eax*2]
mov edx, dword [0x5ced58]
push ecx
mov ecx, ebp
lea eax, [edx + edi*2]
push eax
push esi
call fcn.004db4b0
jmp 0x4dc922
lea edx, [esp + 0x8c]
mov dword [esp + 0x10], 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 + 0x10]
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 + 0x10], eax
jne 0x4dc881
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 + 0x1e8], eax
mov edx, dword [0x5cee28]
mov eax, dword [0x5cee18]
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 + 0x20], eax
lea eax, [esp + 0x8c]
xor esi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jmp 0x4dc962
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x104]
mov eax, dword [esi + 0x5cedf0]
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 + 0x5cedc0]
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.004e1170
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 0x4dc95e
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4dcaad
mov edi, dword [esp + 0x104]
cmp ecx, dword [ebp + edi*4 + 0x30c]
jge 0x4dcaad
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4dcaad
cmp eax, dword [ebp + edi*4 + 0x32c]
jge 0x4dcaad
push eax
push ecx
push edi
mov ecx, ebp
call fcn.004e1700
test al, al
jg 0x4dcaad
mov ecx, dword [esp + 0xc8]
mov edx, dword [0x5ced9c]
mov eax, dword [0x5ced7c]
push ecx
mov ecx, dword [esp + 0x110]
push 1
push ebx
push edx
lea edx, [eax + ecx*2]
mov eax, dword [0x5ced5c]
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.004db4b0
mov eax, dword [esp + 0xc8]
mov ecx, dword [0x5ceda0]
mov edx, dword [0x5ced80]
push eax
mov eax, dword [esp + 0x110]
push 1
push ebx
push ecx
lea ecx, [edx + eax*2]
mov edx, dword [0x5ced60]
mov eax, dword [esp + 0x118]
push ecx
lea ecx, [edx + eax*2]
push ecx
push esi
mov ecx, ebp
call fcn.004db4b0
jmp 0x4dcb5d
lea edx, [esp + 0x8c]
mov dword [esp + 0x10], 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 + 0x10]
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 + 0x10], eax
jne 0x4dcabc
mov eax, dword [ebp + ebx*4 + 0x1e8]
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.004dbff0
mov eax, dword [esp + 0x108]
push 0
push 0
push ebx
push 3
push esi
push eax
push edi
mov ecx, ebp
call fcn.004dbff0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xec
ret 0x10
mov edx, dword [esp + 0x10c]
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
mov 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 0x4dcc14
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 + 0x2c], esi
mov dword [esp + 0x24], edi
call fcn.004dd790
mov ecx, dword [eax]
push esi
mov dword [esp + 0x2c], ecx
push edi
mov edx, dword [eax + 4]
mov ecx, ebp
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
call fcn.004df140
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 + 0x20]
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 0x4dcc10
xor ecx, ecx
mov dword [esp + 0x1c], 0x5ce8a8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 0x5ce8d4]
mov edi, dword [esp + 0x108]
mov esi, dword [esp + 0x10c]
add edx, edi
mov edi, dword [ecx + 0x5ce8e4]
add edi, esi
test edx, edx
mov dword [esp + 0x18], edi
jl 0x4dcf7d
test edi, edi
jl 0x4dcf7d
mov eax, dword [esp + 0x104]
mov esi, dword [ebp + eax*4 + 0x30c]
cmp edx, esi
jge 0x4dcf7d
cmp edi, dword [ebp + eax*4 + 0x32c]
jge 0x4dcf7d
imul esi, edi
mov edi, dword [ebp + 0x36c]
mov edi, dword [edi + eax*4]
add edi, esi
movsx esi, byte [edi + edx]
test esi, esi
je 0x4dcdd3
cmp esi, 0xffffffff
jne 0x4dcf7d
test eax, eax
jle 0x4dcf7d
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add esi, esi
mov edi, dword [edi + 0x5ce934]
mov dword [esp + 0x18], esi
add edi, esi
mov esi, dword [ebp + 0x36c]
imul edi, dword [ebp + eax*4 + 0x308]
add edi, dword [esi + eax*4 - 4]
mov esi, dword [esp + 0x10]
add edi, dword [esi + 0x5ce914]
cmp byte [edi + edx*2], 1
jl 0x4dcf7d
mov edi, dword [esi + 0x5ce938]
mov esi, dword [esp + 0x18]
add edi, esi
mov esi, dword [ebp + 0x36c]
imul edi, dword [ebp + eax*4 + 0x308]
add edi, dword [esi + eax*4 - 4]
mov esi, dword [esp + 0x10]
add edi, dword [esi + 0x5ce918]
cmp byte [edi + edx*2], 1
jl 0x4dcf7d
mov edi, dword [ebp + eax*4 + 0x34c]
mov eax, dword [ecx + 0x5ce8f4]
imul eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + ecx + 0x58]
sar esi, 1
add esi, eax
mov eax, dword [ecx + 0x5ce904]
imul eax, edi
cdq
sub eax, edx
mov edx, dword [esp + ecx + 0x6c]
mov edi, eax
lea ecx, [esp + 0x80]
sar edi, 1
add edi, edx
mov dword [esp + 0x18], esi
push edi
push esi
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.004dd790
mov edx, dword [eax]
push edi
mov dword [esp + 0x2c], edx
push esi
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
call fcn.004df140
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 + 0x1c]
mov dword [esp + 0x48], 0
fstp dword [esp + 0x4c]
fild dword [esp + 0x20]
fdiv st(1)
fstp dword [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
mov ecx, dword [ebp + ebx*4 + 0x1c8]
lea edx, [ecx + 1]
mov dword [ebp + ebx*4 + 0x1c8], edx
mov edx, dword [ebp + ebx*4 + 0x1e8]
mov si, word [eax - 4]
mov edi, dword [ebp + ebx*4 + 0x1a8]
add si, word [esp + 0x14]
lea edx, [edx + edx*2]
mov word [edi + edx*2], si
mov edx, dword [ebp + ebx*4 + 0x1e8]
mov esi, dword [ebp + ebx*4 + 0x1a8]
lea edx, [edx + edx*2]
mov word [esi + edx*2 + 2], cx
mov edx, dword [ebp + ebx*4 + 0x1e8]
mov si, word [esp + 0x14]
mov edi, dword [ebp + ebx*4 + 0x1a8]
add si, word [eax + 4]
lea edx, [edx + edx*2]
mov word [edi + edx*2 + 4], si
mov edx, dword [ebp + ebx*4 + 0x1e8]
mov si, word [esp + 0x14]
inc edx
mov dword [ebp + ebx*4 + 0x1e8], edx
add si, word [eax + 4]
mov edi, dword [ebp + ebx*4 + 0x1a8]
lea edx, [edx + edx*2]
mov word [edi + edx*2], si
mov edx, dword [ebp + ebx*4 + 0x1e8]
mov esi, dword [ebp + ebx*4 + 0x1a8]
lea edx, [edx + edx*2]
mov word [esi + edx*2 + 2], cx
mov cx, word [esp + 0x14]
add cx, word [eax]
mov eax, dword [ebp + ebx*4 + 0x1e8]
lea edx, [eax + eax*2]
mov eax, dword [ebp + ebx*4 + 0x1a8]
mov word [eax + edx*2 + 4], cx
mov eax, dword [ebp + ebx*4 + 0x1e8]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ebp + ebx*4 + 0x1e8], eax
jmp 0x4dcff1
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + ebx*4 + 0x1e8]
mov edi, dword [ebp + ebx*4 + 0x1a8]
mov si, word [edx - 4]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*2]
add si, dx
mov word [edi + eax*2], si
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + ebx*4 + 0x1a8]
mov si, dx
add si, word [eax]
mov eax, dword [ebp + ebx*4 + 0x1e8]
lea eax, [eax + eax*2]
mov word [edi + eax*2 + 2], si
mov eax, dword [esp + 0x1c]
mov si, word [eax + 4]
mov eax, dword [ebp + ebx*4 + 0x1e8]
add si, dx
lea edx, [eax + eax*2]
mov eax, dword [ebp + ebx*4 + 0x1a8]
mov word [eax + edx*2 + 4], si
mov eax, dword [ebp + ebx*4 + 0x1e8]
inc eax
mov dword [ebp + ebx*4 + 0x1e8], eax
mov eax, dword [esp + 0x10]
add ecx, 4
add eax, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, 0xc
cmp eax, 0x5ce8d8
mov dword [esp + 0x1c], eax
jl 0x4dcce9
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xec
ret 0x10