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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x4d6dcc
sub esp, 0xa8
mov ecx, dword [esp + 0xb0]
lea edx, [0x5625a0]
cmp ecx, edx
jne 0x4d6718
mov eax, dword [esp + 0xb4]
jmp 0x4d671d
mov eax, 0
jne 0x4d674b
mov dword [esp + 0x44], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.004610e4
mov dword [esp], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 8], ecx
call fcn.0040d930
jmp 0x4d6888
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4d685f
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x4d677c
test ecx, 0x200
jne 0x4d677c
lea eax, [0x5c13b8]
mov ecx, dword [esp + 0xb8]
jmp 0x4d67a2
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0048a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x80]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409580
mov eax, dword [esp + 8]
lea ecx, [0x560820]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
lea eax, [0x592c46]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x31
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.004d92f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xa8
ret
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xa8
ret
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.0040db70
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4d696d
mov ecx, dword [esp + 0x7c]
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov ebx, dword [ecx]
mov dword [esp + 0x38], ebx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
mov ebp, dword [esp + 0xc0]
test ebp, ebp
je 0x4d68d4
test ebp, 0x200
jne 0x4d68d4
lea esi, [0x5c13b8]
mov edi, dword [esp + 0xb8]
jmp 0x4d68fe
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov ecx, dword [esp + 0xbc]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0048a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004ec010
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x28]
xor ebx, ebx
xor ebp, ebp
jmp 0x4d6991
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x64]
test ebp, ebp
je 0x4d687c
mov dword [esp + 0x64], ebp
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xb8]
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0xc0]
jmp 0x4d6aa5
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xa8
ret
lea ebx, [esi + 1]
mov eax, dword [esp + 0x34]
cmp ebx, eax
jge 0x4d692c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], ebp
mov esi, ebx
shl ebx, 5
mov edi, dword [ecx + ebx + 4]
lea eax, [ecx + ebx]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + ebx]
cmp edi, edx
jne 0x4d69ed
mov dword [esp + 0x40], ebx
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.00403360
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4d6924
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x30]
test ebp, ebp
jne 0x4d698a
mov eax, dword [ecx + ebx]
mov ebx, dword [ecx + ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004bfe80
movzx eax, byte [esp + 0x10]
test al, al
je 0x4d6a2e
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x64]
jmp 0x4d698a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x58]
jmp 0x4d698a
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax + ebx*4]
mov dword [esp], edi
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
call fcn.004879f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004d9510
mov eax, dword [esp + 0x3c]
lea ebx, [eax + 1]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
cmp ebx, ecx
jl 0x4d6a43
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], esi
mov dword [esp], edi
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004d9750
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4d6bff
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4d6ae9
mov eax, dword [esp + 0xac]
jmp 0x4d687c
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x4d6b0b
test ecx, 0x200
jne 0x4d6b0b
lea eax, [0x5c13b8]
mov ecx, dword [esp + 0xb8]
jmp 0x4d6b31
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0048a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x80]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409580
mov eax, dword [esp + 8]
lea ecx, [0x560820]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00409580
mov eax, dword [esp + 8]
lea ecx, [0x560820]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
lea eax, [0x58fb10]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x23
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.004d92f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax]
lea ebx, [ecx + 1]
mov dword [esp + 0x24], ebx
lea ebp, [0x560820]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.004493b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jae 0x4d6dc6
mov edx, dword [esp + 0x10]
lea ebx, [edx + eax*8 + 4]
mov ebp, dword [esp + 0x28]
mov dword [ebx], ebp
mov ebx, dword [0x6c4f80]
lea eax, [edx + eax*8]
test ebx, ebx
jne 0x4d6c61
mov ebx, dword [esp + 0x50]
jmp 0x4d6c71
call fcn.00460f00
mov ebx, dword [esp + 0x50]
mov dword [edi], ebx
mov esi, dword [eax]
mov dword [edi + 4], esi
mov dword [eax], ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004e4750
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
lea ebp, [0x562420]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0040fc40
mov eax, dword [esp + 0x10]
test byte [eax], al
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
inc edx
mov ebx, dword [eax]
cmp ecx, edx
jae 0x4d6d1d
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x560820]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xac]
mov dword [ebx + 8], eax
mov eax, dword [0x6c4f80]
test eax, eax
je 0x4d6d17
call fcn.00460f00
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, ebx
mov ebx, ecx
mov dword [eax + 4], edx
lea ecx, [ebx + edx*8 - 4]
mov ebp, dword [esp + 0x28]
mov dword [ecx], ebp
mov ecx, dword [0x6c4f80]
lea edx, [ebx + edx*8 - 8]
test ecx, ecx
jne 0x4d6d3e
mov ecx, dword [esp + 0x50]
jmp 0x4d6d4e
call fcn.00460f00
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
call fcn.004d5f30
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4d6da4
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
lea ecx, [ebx - 1]
cmp edx, ecx
jb 0x4d6dc1
mov dword [eax + 4], ecx
jmp 0x4d687c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xa8
ret
call fcn.00460fa0
call fcn.00460f60
nop
call fcn.0045faf0
jmp fcn.004d66e0