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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d48d1
sub esp, 0x64
mov edx, dword [esp + 0x74]
test edx, edx
je 0x4d4270
mov byte [esp + 0x6a], 1
mov word [esp + 0x7c], 0x801
mov byte [esp + 0x69], 1
movzx edx, byte [esp + 0x6b]
test dl, dl
je 0x4d427e
mov byte [esp + 0x69], 1
movzx edx, byte [esp + 0x6a]
test dl, dl
je 0x4d4641
mov edx, dword [esp + 0x74]
test edx, edx
jbe 0x4d48c7
mov ebx, dword [esp + 0x70]
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0x24
xchg ebp, eax
je 0x4d44aa
xchg ebp, eax
cmp al, 0x30
xchg ebp, eax
jne 0x4d43c8
cmp edx, 1
jbe 0x4d48bb
cmp byte [ebx + 1], 0x78
jne 0x4d43c8
lea eax, [edx - 2]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 2
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x10
call fcn.00474e30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x4d430c
mov eax, dword [esp + 0x10]
mov word [esp + 0x78], ax
jmp 0x4d44ee
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4d4369
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], eax
lea eax, [0x54fe21]
mov dword [esp], eax
mov dword [esp + 4], 0x23
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00475eb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4d43ee
mov eax, dword [esp + 8]
mov word [esp + 0x78], ax
jmp 0x4d44ee
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4d444b
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
lea eax, [0x54fe21]
mov dword [esp], eax
mov dword [esp + 4], 0x23
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x64
ret
lea eax, [edx - 1]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x10
call fcn.00474e30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x4d4585
mov eax, dword [esp + 0x10]
mov word [esp + 0x78], ax
movzx eax, word [esp + 0x78]
test ax, ax
jne 0x4d4641
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x54c8b2]
mov dword [esp], eax
mov dword [esp + 4], 0x19
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x64
ret
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4d45e2
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
lea eax, [0x54fe21]
mov dword [esp], eax
mov dword [esp + 4], 0x23
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x64
ret
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
call fcn.004876c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d46e7
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4d4685
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
lea eax, [0x54bb79]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x64
ret
movzx ebx, byte [esp + 0x69]
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test bl, bl
je 0x4d474b
cmp edx, 2
jb 0x4d48b1
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], 2
mov dword [esp + 0x88], edx
cmp ecx, 2
jb 0x4d48a7
add edx, 0xfffffffe
mov eax, edx
neg eax
sar eax, 0x1f
and eax, 2
movzx ebx, byte [ebp]
movzx esi, byte [ebp + 1]
shl esi, 8
add ebx, esi
mov word [esp + 0x7a], bx
add ebp, eax
add ecx, 0xfffffffe
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebp
lea eax, [0x52c120]
mov dword [esp], eax
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0
call fcn.0040ceb0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
lea ecx, [0x52c120]
mov dword [esp], ecx
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0
call fcn.0040ceb0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
lea ecx, [0x52c160]
mov dword [esp], ecx
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0
call fcn.0040ceb0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
lea ecx, [0x53d560]
mov dword [esp], ecx
call fcn.0040c3d0
mov eax, dword [0x6b2320]
mov edi, dword [esp + 4]
mov dword [esp + 0x28], edi
test eax, eax
je 0x4d4807
lea eax, [0x53d480]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
call fcn.004111d0
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x68]
call fcn.00468f66
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x6b2320]
test eax, eax
jne 0x4d483e
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
jmp 0x4d4876
call fcn.004688c0
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov edx, dword [ecx + 0x24]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x44]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x30]
mov dword [edi + 0xc], ebx
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x10], ebx
mov ebp, dword [ecx + 0x34]
mov dword [edi + 0x14], ebp
mov ebp, dword [esp + 0x3c]
mov dword [edi + 0x18], ebp
mov esi, dword [ecx + 0x38]
mov dword [edi + 0x1c], esi
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], ebx
mov dword [ecx + 0x38], ebp
mov byte [ecx + 0x50], 1
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x64
ret
mov eax, 2
call fcn.00468930
mov ecx, 2
call fcn.00468910
mov eax, 1
mov ecx, eax
call fcn.004688d0
xor eax, eax
mov ecx, eax
call fcn.004688d0
nop
call fcn.00467460
jmp fcn.004d4240