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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x4d1cbb
sub esp, 0x84
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], 0x400
mov dword [esp + 0x60], 0x10400
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4d1583
lea ebx, [edx + 1]
mov eax, ebx
mov ecx, edi
mov edx, dword [esp + 0x74]
cmp eax, 2
jge 0x4d17a8
mov dword [esp + 0x2c], eax
lea ecx, [esp + eax*8 + 0x58]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x90]
cmp ebx, edx
xchg ebp, ebx
setb bl
xchg ebp, ebx
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x94]
cmp esi, ecx
xchg edi, ebx
sete bl
xchg edi, ebx
setl al
and ebp, edi
or ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4d15cf
mov ecx, dword [esp + 0x94]
jmp 0x4d15d1
mov ebx, edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x38], ecx
lea eax, [0x654440]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044b820
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x54]
sub eax, ecx
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 0x88]
mov esi, dword [ebp + 0x10]
mov edi, dword [esp + 0x8c]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x38]
sbb edi, ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x4d169c
mov eax, dword [0xbbdc9c]
cmp dword [0xbbdc98], ecx
je 0x4d1670
mov eax, 1
jmp 0x4d1698
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004037d0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x68]
test al, al
jne 0x4d16fb
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004d2350
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x4d1773
mov edx, dword [esp + 0x2c]
cmp edx, 1
je 0x4d1731
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x38]
cmp ebx, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x54]
cmp esi, edi
sete bl
and ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4d1578
jmp 0x4d1731
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebp
add esp, 0x84
ret
mov eax, dword [0xbbda90]
mov ecx, dword [0xbbda94]
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x84
ret
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jb 0x4d1cb5
mov ebx, dword [esp + 0x50]
mov ebp, eax
add eax, ebx
mov esi, ebp
sar ebp, 0x1f
add ebx, esi
mov ebx, dword [esp + 0x4c]
adc ebp, ebx
sub ecx, esi
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, esi
mov esi, dword [esp + 0x74]
lea edx, [ecx + esi]
jmp 0x4d17ae
mov ebx, ecx
xor ebp, ebp
xor eax, eax
cmp ebx, 4
jb 0x4d1ca9
lea ecx, [ebx - 4]
mov esi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
lea edi, [edx + ecx]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
nop
cmp esi, 1
jbe 0x4d1c9d
mov dword [esp + 0x34], ebp
lea esi, [ebx - 6]
movzx edx, word [edx + ecx]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov ecx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 2
lea ebp, [edi + esi]
mov dword [esp + 0x78], ebp
nop
cmp ecx, 1
jbe 0x4d1c93
lea ecx, [ebx - 8]
movzx esi, word [edi + esi]
mov dword [esp + 0x54], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov edi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 2
lea esi, [ebp + ecx]
mov dword [esp + 0x78], esi
nop
cmp edi, 1
jbe 0x4d1c87
lea edi, [ebx - 0xa]
movzx ebp, word [ebp + ecx]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov ecx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 2
lea ebp, [esi + edi]
mov dword [esp + 0x78], ebp
nop
cmp ecx, 1
jbe 0x4d1c7d
lea ecx, [ebx - 0xc]
movzx esi, word [esi + edi]
mov dword [esp + 0x48], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov edi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 2
lea esi, [ecx + ebp]
mov dword [esp + 0x78], esi
nop
cmp edi, 3
jbe 0x4d1c71
lea edi, [ebx - 0x10]
mov ebp, dword [ebp + ecx]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov ecx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 4
lea ebp, [edi + esi]
mov dword [esp + 0x78], ebp
nop
cmp ecx, 3
jbe 0x4d1c67
lea ecx, [ebx - 0x14]
mov esi, dword [esi + edi]
mov dword [esp + 0x40], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov edi, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
lea esi, [ecx + ebp]
mov dword [esp + 0x78], esi
nop
cmp edi, 1
jbe 0x4d1c5b
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
lea eax, [ebx - 0x16]
movzx ecx, word [ebp + ecx]
mov word [esp + 0x26], cx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
neg eax
sar eax, 0x1f
and eax, 2
add eax, esi
mov dword [esp + 0x78], eax
lea eax, [0x6754e0]
mov dword [esp], eax
call fcn.0040b830
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 0
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], 0
movzx ecx, word [esp + 0x26]
mov word [eax + 0x28], cx
movzx ecx, cx
mov edx, dword [esp + 0x78]
lea ebx, [esp + 0x78]
cmp dword [ebx + 4], ecx
jl 0x4d1bfe
mov dword [esp + 0x6c], eax
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0044f3f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0x30], ecx
mov ecx, dword [0xbe5550]
test ecx, ecx
jne 0x4d19eb
mov dword [edx + 0x2c], eax
jmp 0x4d19f3
lea edi, [edx + 0x2c]
call fcn.00462ce0
cmp dword [edx + 0x10], 0xffff
sete al
mov ecx, dword [edx + 0x14]
test ecx, ecx
sete cl
and eax, ecx
test al, al
jne 0x4d1a3c
cmp dword [edx + 0x18], 0xffff
sete al
mov ecx, dword [edx + 0x1c]
test ecx, ecx
sete cl
and eax, ecx
test al, al
jne 0x4d1a3c
cmp dword [edx + 0x20], 0xffffffff
sete al
mov ecx, dword [edx + 0x24]
test ecx, ecx
sete cl
and eax, ecx
test al, al
je 0x4d1b1b
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], ebx
call fcn.004d1cd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
test ecx, ecx
jne 0x4d1a95
test edx, edx
sete dl
xchg esi, ebx
setg bl
xchg esi, ebx
and edx, 1
or esi, edx
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4d1a9f
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
jmp 0x4d1ae1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
call fcn.004d1f50
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
test ecx, ecx
je 0x4d1b23
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ebx
add esp, 0x84
ret
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [ecx + 0x18]
mov ebp, edx
sub edx, ebx
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x54], esi
mov edi, edx
sub edx, esi
add esi, edx
mov dword [esp + 0x28], esi
mov esi, dword [ecx + 0x1c]
sub ebp, ebx
sbb eax, esi
mov ebx, dword [ecx + 0x24]
mov ebp, dword [esp + 0x54]
sub edi, ebp
sbb eax, ebx
add ebp, edx
adc ebx, eax
test ebx, ebx
jl 0x4d1b8a
mov ebp, dword [esp + 0x94]
cmp ebp, ebx
setl bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x90]
cmp esi, edi
xchg esi, ebx
setae bl
xchg esi, ebx
and esi, ebp
or esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x4d1bcc
mov eax, dword [0xbbda90]
mov ecx, dword [0xbbda94]
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x84
ret
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x84
ret
lea eax, [0x65cd40]
mov dword [esp], eax
call fcn.0040b830
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1b
lea ecx, [0x68f743]
mov dword [eax], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
lea ecx, [0xa54a34]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
add esp, 0x84
ret
mov eax, 1
mov ecx, edi
call fcn.00462d60
mov eax, 3
call fcn.00462d60
mov eax, 3
mov ecx, edi
call fcn.00462d60
mov eax, 1
call fcn.00462d60
mov eax, 1
mov ecx, edi
call fcn.00462d60
mov eax, 1
call fcn.00462d60
mov eax, 1
mov ecx, esi
call fcn.00462d60
mov eax, 4
mov ecx, ebx
call fcn.00462dc0
call fcn.00462dc0
nop
call fcn.004618d0
jmp fcn.004d1520