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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov ebx, ecx
mov ecx, dword [esp + 0x98]
mov esi, edx
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
cmp ecx, 0x21
jb 0x4d8301
mov ebx, ecx
mov ebp, edi
shr ebx, 1
sub ebp, ebx
jae 0x4d86d9
mov ebp, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
add ebp, ecx
jb 0x4d86d7
test ebp, ebp
mov ebx, 0
mov dword [esp], 0
jne 0x4d8bd2
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x1c], ebx
jmp 0x4d84c5
test ecx, ecx
je 0x4d86d7
mov esi, dword [edx]
lea eax, [edi*4]
test edi, edi
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
jne 0x4d8c51
xor edi, edi
mov ebp, 4
lea eax, [ebp + edi*4]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push eax
call fcn.00553570
add esp, 0xc
mov eax, edi
add eax, dword [esp + 0x90]
jb 0x4d86d7
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xc], eax
je 0x4d83d6
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp], eax
lea ecx, [ecx + edi*4]
xor edi, edi
nop dword [eax]
mov eax, esi
mul dword [ebp + ebx]
add eax, edi
mov edi, edx
adc edi, 0
mov dword [ebp + ebx], eax
add ebx, 4
cmp ecx, ebx
jne 0x4d8380
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp]
test edi, edi
je 0x4d83d6
cmp eax, dword [esp + 4]
jne 0x4d83c7
lea ecx, [esp + 4]
call fcn.004d02a0
mov eax, dword [esp]
mov ecx, dword [esp + 0x98]
mov ebp, dword [esp + 8]
mov dword [ebp + eax*4], edi
inc eax
je 0x4d86d7
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0xc]
movsd xmm0, qword [esp + 4]
mov ebp, edi
mov dword [esp + 0x1c], eax
movsd qword [esp + 0x14], xmm0
add ebp, ecx
jb 0x4d86d7
mov esi, dword [esp + 0x1c]
mov eax, ebp
sub ebp, esi
jbe 0x4d847a
mov eax, dword [esp + 0x14]
sub eax, esi
cmp eax, ebp
jb 0x4d8c6d
mov edx, dword [esp + 0x18]
cmp ebp, 2
lea eax, [edx + esi*4]
jb 0x4d846b
mov ebx, esi
lea edi, [ebp - 2]
mov dword [esp], edx
not ebx
mov ecx, edi
cmp ebx, edi
cmovb ecx, ebx
lea ecx, [ecx*4 + 4]
push ecx
push 0
push eax
call fcn.00553af0
add esp, 0xc
cmp edi, ebx
jae 0x4d86d7
mov ecx, dword [esp]
lea eax, [esi + ebp]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x90]
lea esi, [esi + ebp - 1]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x98]
inc esi
mov dword [eax], 0
je 0x4d86d7
mov eax, esi
cmp ecx, 1
mov dword [esp + 0x1c], eax
je 0x4d856b
mov ebp, dword [esp + 0x94]
xor ebx, ebx
lea eax, [ebp + ecx*4]
add ebp, 4
mov dword [esp + 0x2c], eax
jmp 0x4d8605
shl eax, 2
push 4
push eax
push ebp
call fcn.00477e90
add esp, 0xc
mov ecx, dword [esp + 0x10]
lea ebp, [esi + edi*4]
mov esi, dword [esp + 0x28]
sub ecx, edi
mov edi, dword [esp + 0x90]
je 0x4d8512
cmp ecx, edi
mov eax, edi
mov dword [esp + 0x10], ecx
mov edx, esi
cmovb edi, ecx
lea ecx, [esp + 4]
push edi
mov esi, ebp
push ebp
push eax
call fcn.004d8280
add esp, 0xc
mov ebp, dword [esp + 8]
mov ebx, dword [esp]
lea ecx, [esp + 0x14]
mov edx, ebp
push ebx
push dword [esp + 0x10]
call fcn.004d80e0
add esp, 8
add ebx, edi
mov dword [esp], ebx
jb 0x4d86d7
mov eax, dword [esp + 4]
test eax, eax
jne 0x4d84a0
jmp 0x4d84af
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x4d852d
mov ecx, dword [esp + 0x18]
cmp dword [ecx + eax*4 - 4], 0
je 0x4d8544
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x4d858f
xor eax, eax
jmp 0x4d8529
dec eax
mov edx, eax
nop word [eax + eax]
sub edx, 1
jb 0x4d8540
cmp dword [ecx + eax*4 - 4], 0
mov eax, edx
je 0x4d8550
inc edx
mov eax, edx
jmp 0x4d8529
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
test eax, eax
je 0x4d857e
mov ecx, dword [esp + 0x18]
cmp dword [ecx + eax*4 - 4], 0
je 0x4d859b
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
mov dword [ebx + 8], eax
movsd qword [ebx], xmm0
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x4d857a
dec eax
mov edx, eax
nop
sub edx, 1
jb 0x4d8597
cmp dword [ecx + eax*4 - 4], 0
mov eax, edx
je 0x4d85a0
inc edx
mov eax, edx
jmp 0x4d857a
mov ebp, dword [esp]
xor eax, eax
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
lea ecx, [esp + 0x14]
mov edx, esi
inc ebx
push ebx
push eax
call fcn.004d80e0
add esp, 8
test edi, edi
je 0x4d85f1
shl edi, 2
push 4
push edi
push esi
call fcn.00477e90
add esp, 0xc
add ebp, 4
mov edi, dword [esp + 0x90]
cmp ebp, dword [esp + 0x2c]
je 0x4d8563
mov dword [esp], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebx
test edi, edi
mov esi, 4
mov ebx, 0
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0
jne 0x4d86bb
lea eax, [esi + ebx*4]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push eax
call fcn.00553570
add esp, 0xc
mov eax, ebx
add eax, edi
jb 0x4d86d7
mov dword [esp + 0xc], eax
je 0x4d85c0
mov ecx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x20], eax
lea ecx, [ecx + ebx*4]
xor ebx, ebx
mov eax, ebp
mul dword [esi + edi]
add eax, ebx
mov ebx, edx
adc ebx, 0
mov dword [esi + edi], eax
add edi, 4
cmp ecx, edi
jne 0x4d8670
mov ebp, dword [esp]
mov eax, dword [esp + 0x20]
test ebx, ebx
je 0x4d85c5
cmp eax, dword [esp + 4]
jne 0x4d86ac
lea ecx, [esp + 4]
call fcn.004d02a0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 8]
mov dword [esi + eax*4], ebx
inc eax
je 0x4d86d7
mov esi, dword [esp + 8]
jmp 0x4d85c5
lea ecx, [esp + 4]
xor edx, edx
push edi
call fcn.0068fbc0
add esp, 4
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x4d8639
ud2
lea eax, [ebx*4]
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0
lea ecx, [esp + 4]
xor edx, edx
mov dword [esp], eax
push ebx
call fcn.0068fbc0
add esp, 4
mov edi, dword [esp + 0xc]
lea eax, [edi*4]
add eax, dword [esp + 8]
push dword [esp]
push esi
push eax
call fcn.00553570
add esp, 0xc
add edi, ebx
jb 0x4d86d7
lea edx, [esi + ebx*4]
mov dword [esp + 0xc], edi
lea ecx, [esp + 4]
mov dword [esp + 0x10], edx
push 0
push ebp
call fcn.004d80e0
add esp, 8
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], edi
lea ecx, [esp + 4]
push ebx
call fcn.0068fbc0
add esp, 4
mov esi, ebx
mov ebx, dword [esp + 0xc]
lea eax, [ebx*4]
add eax, dword [esp + 8]
push dword [esp]
mov ecx, dword [esp + 0x98]
push ecx
push eax
call fcn.00553570
add esp, 0xc
add ebx, esi
jb 0x4d86d7
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
lea ecx, [esp + 4]
sub edi, esi
lea edx, [eax + esi*4]
mov dword [esp], edx
push 0
push edi
call fcn.004d80e0
add esp, 8
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x58]
push esi
push dword [esp + 0x98]
mov dword [esp + 0x34], esi
push esi
call fcn.004d8280
add esp, 0xc
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x64]
push dword [esp + 0x20]
mov dword [esp + 0x50], ebx
push ebx
push dword [esp + 0x2c]
call fcn.004d8280
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push edi
push dword [esp + 4]
push ebp
call fcn.004d8280
add esp, 0xc
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
cmp edi, ebx
mov ecx, ebx
mov dword [esp], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebp
cmovb ecx, edi
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x4d8916
mov dword [esp + 0x20], edi
mov edi, dword [esp]
xor edx, edx
xor ecx, ecx
jmp 0x4d8897
mov eax, dword [esp]
dec ebp
cmp esi, ebx
setbe dl
mov dword [eax + ecx*4], ebp
inc ecx
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x10], ecx
je 0x4d88b1
mov esi, dword [edi + ecx*4]
mov ebx, dword [ebp + ecx*4]
mov ebp, esi
sub ebp, ebx
setb al
test dl, 1
mov dword [edi + ecx*4], ebp
mov edx, eax
je 0x4d888c
jmp 0x4d8880
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
test dl, dl
je 0x4d8916
cmp edi, ebx
jbe 0x4d86d7
mov eax, dword [esp]
lea ecx, [ebx + 1]
mov edx, dword [esp + 0x2c]
sub dword [eax + ebx*4], 1
setb al
cmp ecx, edi
setb cl
and cl, al
cmp cl, 1
jne 0x4d88f6
mov ecx, dword [esp]
lea eax, [ebx + 2]
sub dword [ecx + eax*4 - 4], 1
jae 0x4d88f6
cmp eax, edi
lea eax, [eax + 1]
jb 0x4d88e8
mov eax, dword [esp]
cmp dword [eax + edi*4 - 4], 0
jne 0x4d8947
mov ecx, dword [esp]
dec edi
mov eax, edi
sub eax, 1
jb 0x4d8945
cmp dword [ecx + edi*4 - 4], 0
mov edi, eax
je 0x4d8906
jmp 0x4d893c
test edi, edi
je 0x4d8941
mov eax, dword [esp]
mov edx, dword [esp + 0x2c]
cmp dword [eax + edi*4 - 4], 0
jne 0x4d8947
mov ecx, dword [esp]
dec edi
mov eax, edi
sub eax, 1
jb 0x4d8945
cmp dword [ecx + edi*4 - 4], 0
mov edi, eax
je 0x4d892e
inc eax
mov edi, eax
jmp 0x4d8947
mov edx, dword [esp + 0x2c]
xor edi, edi
mov eax, dword [esp + 0x60]
cmp edi, eax
mov dword [esp + 0x34], eax
cmovb eax, edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x4d8a28
mov eax, dword [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x4d8993
mov edx, dword [esp]
dec ebp
cmp edi, esi
setbe bl
mov dword [edx + eax*4], ebp
inc eax
cmp dword [esp + 0x10], eax
je 0x4d89b3
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esp]
mov edi, dword [ecx + eax*4]
mov ebp, edi
sub ebp, esi
setb dl
test bl, 1
mov dword [ecx + eax*4], ebp
mov ebx, edx
je 0x4d898c
jmp 0x4d8980
test bl, bl
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
je 0x4d8a28
cmp edi, ecx
jbe 0x4d86d7
mov eax, dword [esp]
sub dword [eax + ecx*4], 1
mov ecx, dword [esp + 0x98]
jae 0x4d8a08
mov eax, dword [esp + 0x34]
inc eax
cmp eax, edi
jae 0x4d8a08
mov eax, dword [esp + 0x34]
mov esi, dword [esp]
mov edi, dword [esp + 0x20]
add eax, 2
sub dword [esi + eax*4 - 4], 1
jae 0x4d8a08
cmp eax, edi
lea eax, [eax + 1]
jb 0x4d89fa
mov eax, dword [esp]
cmp dword [eax + edi*4 - 4], 0
jne 0x4d8a66
mov esi, dword [esp]
dec edi
mov eax, edi
sub eax, 1
jb 0x4d8a64
cmp dword [esi + edi*4 - 4], 0
mov edi, eax
je 0x4d8a18
jmp 0x4d8a51
test edi, edi
je 0x4d8a5d
mov eax, dword [esp]
mov ecx, dword [esp + 0x98]
cmp dword [eax + edi*4 - 4], 0
jne 0x4d8a66
mov esi, dword [esp]
dec edi
mov eax, edi
sub eax, 1
jb 0x4d8a64
cmp dword [esi + edi*4 - 4], 0
mov edi, eax
je 0x4d8a43
inc eax
mov edi, eax
jmp 0x4d8a66
xor ecx, ecx
jmp 0x4d8af2
mov ecx, dword [esp + 0x98]
xor edi, edi
add edx, edi
jb 0x4d86d7
and ecx, 0xfffffffe
mov eax, ecx
add eax, ebx
jb 0x4d86d7
mov esi, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x58]
mov dword [esp + 0x10], ecx
cmp esi, edx
movsd qword [esp + 0x40], xmm0
cmova edx, esi
cmp edx, eax
cmovbe edx, eax
mov eax, dword [esp + 0x60]
mov ebx, edx
sub edx, eax
mov dword [esp + 0x48], eax
jb 0x4d86d7
mov ecx, dword [esp + 0x40]
mov esi, ecx
sub esi, eax
cmp esi, edx
mov esi, edi
jae 0x4d8b21
add eax, edx
jb 0x4d8c8c
xor edx, edx
cmp ebx, 0x20000000
lea eax, [ebx*4]
setb dl
shl edx, 2
test ecx, ecx
je 0x4d8a56
mov esi, dword [esp + 0x44]
shl ecx, 2
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov ecx, 4
lea esi, [esp + 4]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x14]
push esi
push eax
call fcn.004d0220
add esp, 8
cmp dword [esp + 0x14], 1
je 0x4d8c90
mov eax, dword [esp + 0x18]
mov esi, edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov edx, dword [esp]
lea edi, [esp + 0x40]
mov ecx, edi
push dword [esp + 0x2c]
push esi
call fcn.004d80e0
add esp, 8
mov ecx, edi
mov edx, ebp
push dword [esp + 0x10]
push dword [esp + 0x3c]
call fcn.004d80e0
add esp, 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x70]
movsd qword [ecx], xmm0
test eax, eax
je 0x4d8b77
shl eax, 2
push 4
push eax
push ebp
call fcn.00477e90
add esp, 0xc
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x3c]
test eax, eax
je 0x4d8b95
shl eax, 2
push 4
push eax
push dword [esp + 8]
call fcn.00477e90
add esp, 0xc
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4d8baf
shl eax, 2
push 4
push eax
push dword [esp + 0x54]
call fcn.00477e90
add esp, 0xc
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4d858f
shl eax, 2
push 4
push eax
push esi
call fcn.00477e90
add esp, 0x88
jmp 0x4d8592
lea ecx, [esp + 0x14]
xor edx, edx
push ebp
call fcn.0068fbc0
add esp, 4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp ebp, 1
lea eax, [ecx + ebx*4]
je 0x4d8c34
mov esi, ebx
not ebx
lea edi, [ebp - 2]
mov dword [esp + 0x10], ecx
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
lea ecx, [ecx*4 + 4]
push ecx
push 0
push eax
call fcn.00553af0
add esp, 0xc
cmp edi, ebx
jae 0x4d86d7
mov ecx, dword [esp + 0x10]
lea eax, [esi + ebp]
mov edi, dword [esp + 0x90]
lea ebx, [esi + ebp - 1]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x98]
inc ebx
mov dword [eax], 0
je 0x4d86d7
mov esi, dword [esp + 0x28]
jmp 0x4d82f1
lea ecx, [esp + 4]
xor edx, edx
push edi
call fcn.0068fbc0
add esp, 4
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0xc]
jmp 0x4d833d
lea ecx, [esp + 0x14]
mov edx, esi
push ebp
call fcn.0068fbc0
mov ecx, dword [esp + 0x9c]
add esp, 4
mov esi, dword [esp + 0x1c]
jmp 0x4d8413
xor eax, eax
jmp 0x4d8c98
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.006a7430
int3