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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x4d9a7b
sub esp, 0xb0
mov eax, 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x4d9a05
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004d8e70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x4d998c
mov eax, dword [esp + 0xb4]
mov dword [eax + 4], ecx
mov ecx, dword [0x5e0f70]
test ecx, ecx
jne 0x4d9974
mov dword [eax], edx
mov ecx, dword [eax + 0x50]
lea ebx, [eax + 0x50]
test ecx, ecx
jne 0x4d9912
mov dword [esp + 0x74], ebx
mov ecx, dword [eax + 0x5c]
mov ebp, dword [eax + 0x58]
test ebp, ebp
jne 0x4d985f
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x52f0d0]
mov dword [esp + 0x80], ecx
lea ecx, [0x52f0d4]
mov dword [esp + 0x84], ecx
lea ecx, [0x52f0cc]
mov dword [esp + 0x88], ecx
xor ecx, ecx
jmp 0x4d9287
mov ebp, dword [esp + 0x38]
lea ecx, [ebp + 1]
mov ebx, dword [esp + 0x74]
cmp ecx, 3
jge 0x4d9404
mov dword [esp + 0x38], ecx
lea ebx, [esp + 0x80]
mov edx, dword [ebx + ecx*4]
mov dword [esp], eax
mov ebp, dword [edx]
call ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
test ecx, ecx
jne 0x4d938b
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
lea edi, [eax + 0x6c]
mov edx, edi
lea edi, [ebp + 1]
cmp edi, esi
jg 0x4d9305
lea esi, [ebp + 1]
mov dword [eax + 0x70], esi
lea esi, [ecx + ebp*4]
mov edi, dword [0x5e0f70]
test edi, edi
jne 0x4d92ed
mov dword [ecx + ebp*4], ebx
jmp 0x4d927c
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0040df80
mov eax, dword [esp + 0xb4]
jmp 0x4d927c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x70], edx
lea eax, [0x520640]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.00438000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xb4]
mov dword [ebx + 0x74], edx
mov edx, dword [0x5e0f70]
test edx, edx
jne 0x4d9362
mov dword [ebx + 0x6c], eax
mov ebx, dword [esp + 0x3c]
mov ebp, ecx
mov ecx, eax
mov eax, dword [esp + 0xb4]
jmp 0x4d92d5
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040df80
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0xb4]
jmp 0x4d934e
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x44]
lea ebp, [ecx + edx]
mov dword [esp + 0x38], ebp
mov esi, dword [eax + 0x74]
mov edi, dword [eax + 0x6c]
lea ebx, [eax + 0x6c]
mov dword [esp + 0x68], ebx
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
cmp ebp, esi
ja 0x4d9810
cmp ebp, esi
ja 0x4d9a74
cmp ecx, ebp
ja 0x4d9a74
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], edi
sub esi, ecx
mov dword [esp + 0x30], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ecx, 2
sar esi, 0x1f
and ecx, esi
add ecx, edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
lea ecx, [0x520640]
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.0040e2e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb4]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x74], eax
mov eax, dword [0x5e0f70]
test eax, eax
jne 0x4d97f0
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edx, edx
jle 0x4d97c0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x64], eax
mov dword [esp], ecx
call fcn.004d8240
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004da6a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x8c]
mov ebx, eax
xor eax, eax
call fcn.0044bb37
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xac], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ecx
call fcn.0048fa30
mov eax, dword [0x5e0f70]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x4d979c
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x50], ecx
test edx, edx
jne 0x4d9732
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x94]
lea edx, [0x4fbf40]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00403150
mov eax, dword [0x5e0f70]
mov ecx, dword [esp + 0xb4]
lea edx, [ecx + 0x9c]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x4d971a
mov dword [ecx + 0x9c], ebx
mov eax, dword [ecx + 0x90]
mov dword [esp + 0x60], eax
mov edx, dword [ecx + 0x94]
mov dword [esp + 0x38], edx
xor ebx, ebx
jmp 0x4d968a
mov dword [esp + 0x34], ebx
mov edx, dword [eax + ebx*4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp], 8
lea edx, [0x52f0c4]
mov dword [esp + 4], edx
call fcn.0042e860
mov eax, dword [esp + 0x34]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x4d964f
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x4d96b2
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0xb0
ret
lea eax, [0x4fc100]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00403150
mov eax, dword [0x5e0f70]
mov ecx, dword [esp + 0xb4]
lea edx, [ecx + 0xa0]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x4d9705
mov dword [ecx + 0xa0], ebx
mov dword [esp + 8], ecx
mov dword [esp], 4
lea eax, [0x52f0c8]
mov dword [esp + 4], eax
call fcn.0042e860
jmp 0x4d9695
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040df80
mov ecx, dword [esp + 0xb4]
jmp 0x4d96e9
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040df80
mov ecx, dword [esp + 0xb4]
jmp 0x4d9637
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040df80
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
jmp 0x4d95cb
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], esi
mov ebx, 1
mov edx, 1
lea eax, [esp + 0x78]
jmp 0x4d94bf
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0040df80
mov ecx, dword [esp + 0xb4]
jmp 0x4d94ae
mov dword [esp + 0x34], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
lea eax, [0x520640]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.00438000
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x38]
jmp 0x4d942c
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.00404770
movzx eax, byte [esp + 8]
test al, al
jne 0x4d988c
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x74]
jmp 0x4d9230
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0xb0
ret
lea eax, [0x507c00]
mov dword [esp], eax
call fcn.0040d710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
mov ecx, dword [0x5e0f70]
test ecx, ecx
jne 0x4d9958
lea ecx, [0x528c36]
mov dword [eax], ecx
lea ecx, [0x540d00]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov dword [esp + 0x58], eax
mov dword [esp], eax
lea ecx, [0x528c36]
mov dword [esp + 4], ecx
call fcn.0040df80
mov eax, dword [esp + 0x58]
jmp 0x4d993d
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040df80
mov eax, dword [esp + 0xb4]
jmp 0x4d9210
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x88]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xbc], eax
add esp, 0xb0
ret
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004d8dc0
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0xb0
ret
call fcn.004252e0
ud2
call fcn.00449fd0
jmp fcn.004d9180