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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x4e4eaa
sub esp, 0xb4
mov eax, 0
mov dword [esp + 0xb0], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
lea eax, [0x58a2fb]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.004ab880
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x26], al
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea ecx, [0x4e4ec0]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb0], ecx
mov byte [esp + 0x27], 1
cmp dword [esp + 0xbc], 2
jge 0x4e4a45
xor ecx, ecx
jmp 0x4e4a72
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x5863e7]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e4a7d
mov ecx, 1
jmp 0x4e4ab8
cmp dword [esp + 0xbc], 2
jge 0x4e4a8b
xor ecx, ecx
jmp 0x4e4ab8
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x5863e9]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e4af2
mov ecx, dword [esp + 0xbc]
cmp ecx, 2
jb 0x4e4e93
lea ebx, [ecx - 2]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 2
mov esi, dword [esp + 0xb8]
add ebx, esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebp
jmp 0x4e4b65
cmp dword [esp + 0xbc], 3
jge 0x4e4b00
xor ecx, ecx
jmp 0x4e4b2d
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x5865a6]
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e4b65
mov ecx, dword [esp + 0xbc]
cmp ecx, 3
jb 0x4e4e89
lea ebx, [ecx - 3]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 3
mov esi, dword [esp + 0xb8]
add ebx, esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebp
mov edx, dword [esp + 0xbc]
cmp edx, 6
jge 0x4e4b75
mov ecx, edx
jmp 0x4e4b7c
mov ecx, edx
mov edx, 6
cmp edx, ecx
ja 0x4e4e7e
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call fcn.004be050
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x4e4d59
call fcn.0040c790
mov eax, dword [esp]
mov dword [esp + 0x48], eax
call fcn.0040c790
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x34], edx
lea ebx, [0x55cd80]
mov dword [esp], ebx
mov dword [esp + 4], 0xa
call fcn.00404bf0
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
lea ecx, [0x567240]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xa
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
lea ecx, [0x5799c0]
mov dword [esp], ecx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x4e4c46
mov ecx, dword [esp + 0x34]
jmp 0x4e4c51
call fcn.00460ef0
mov ecx, dword [esp + 0x34]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x5958f0]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x4e4c6c
mov ecx, dword [esp + 0x40]
jmp 0x4e4c77
call fcn.00460ef0
mov ecx, dword [esp + 0x40]
mov dword [edi], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0xa
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x4e4c98
mov ecx, dword [esp + 0x3c]
jmp 0x4e4ca3
call fcn.00460ef0
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [esp + 0x30], eax
mov dword [eax + 0x38], ecx
mov dword [eax + 0x10], 1
movzx ecx, byte [esp + 0x26]
mov byte [eax + 0x1c], cl
call fcn.0040c790
mov eax, dword [esp]
mov dword [esp + 0x38], eax
lea ecx, [0x577360]
mov dword [esp], ecx
call fcn.0040bd30
mov eax, dword [0x6c4f80]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4e4cef
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
jmp 0x4e4d08
call fcn.00460f10
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x30]
mov dword [edi + 8], ebx
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], edx
mov dword [ecx], ebx
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
lea eax, [0x6c4d40]
mov dword [ecx + 0x28], eax
mov eax, dword [0x6c4f80]
test eax, eax
jne 0x4e4d37
mov eax, dword [esp + 0x38]
jmp 0x4e4d42
call fcn.00460ef0
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov dword [ecx + 0x3c], eax
movzx eax, byte [esp + 0x26]
mov byte [ecx + 0x24], al
mov dword [esp + 0xc0], ecx
jmp 0x4e4e2e
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.004610e2
lea ecx, [0x594670]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0x50
mov dword [esp + 0x88], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x9c], 1
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
lea ecx, [0x5798e0]
mov dword [esp], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.004093b0
mov ecx, dword [esp + 8]
mov dword [esp + 0xc0], 0
lea edx, [0x5c0618]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov ecx, dword [edx]
call ecx
add esp, 0xb4
ret
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0x58]
call fcn.004615b0
call fcn.004e5540
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call fcn.004e51c0
lea edi, [esp + 0x58]
lea esi, [esp + 4]
call fcn.004615b0
cmp dword [esp + 0x58], 2
jne 0x4e4e12
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, ecx
mov ecx, edx
mov edx, eax
call fcn.00460f80
mov eax, 3
call fcn.00460fc0
mov eax, 2
call fcn.00460fc0
nop
call fcn.00434a10
add esp, 0xb4
ret
call fcn.0045faf0
jmp fcn.004e4980