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

Disassembly:
push 0xffffffffffffffff
push 0x50e733
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0xbc]
test esi, esi
jne 0x4d0705
xor al, al
jmp 0x4d094a
cmp esi, 0x2710
ja 0x4d06fe
mov eax, dword [ebp + 0x10]
push eax
call fcn.004bea70
add esp, 4
lea ecx, [esp + 0x8c]
call fcn.00404230
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb4], 0
call fcn.00404230
mov byte [esp + 0xb4], 1
lea ebx, [ebp + 0x14]
jmp 0x4d0757
mov esi, dword [esp + 0xbc]
mov eax, dword [ebx]
test eax, eax
je 0x4d076c
push eax
call fcn.004ecd7b
add esp, 4
mov dword [ebx], 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004be9c0
add esp, 4
cmp esi, eax
ja 0x4d0966
push esi
call fcn.004bf040
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx], eax
xor ebp, ebp
xor edi, edi
call fcn.00404150
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00420590
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.004e81e0
xor esi, esi
cmp dword [esp + 0xbc], esi
mov dword [esp + 0x18], eax
jbe 0x4d07f2
test ebp, ebp
jne 0x4d07cf
mov eax, dword [esp + 0x18]
movzx edi, byte [esi + eax]
mov ebp, 8
mov edx, dword [ebx]
mov ecx, edi
and ecx, 1
push ecx
push esi
push edx
call fcn.004bec00
add esi, 1
add esp, 0xc
shr edi, 1
sub ebp, 1
cmp esi, dword [esp + 0xbc]
jb 0x4d07be
mov ebp, dword [esp + 0x14]
mov eax, dword [0x587b40]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.004bea00
add esp, 8
test eax, eax
jle 0x4d0750
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
push edx
push eax
call fcn.004bea00
add esp, 8
test eax, eax
jge 0x4d0750
lea ecx, [esp + 0x50]
call fcn.00476930
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 2
call fcn.00476930
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb4], 3
call fcn.00476930
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 4
call fcn.00476930
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x78]
push ecx
push edx
mov byte [esp + 0xbc], 5
call fcn.004bed20
mov ecx, dword [ebx]
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.004bed20
mov eax, dword [ebp + 8]
lea edx, [esp + 0x74]
push edx
push eax
call fcn.004bed20
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x9c]
push ecx
call fcn.0047f310
mov eax, dword [ebp + 0x18]
add esp, 0x28
test eax, eax
je 0x4d08cc
push eax
call fcn.004ecd7b
add esp, 4
mov dword [ebp + 0x18], 0
lea edx, [esp + 0x50]
push edx
call fcn.004bedc0
add esp, 4
lea ecx, [esp + 0x64]
mov dword [ebp + 0x18], eax
mov byte [esp + 0xb4], 4
call fcn.00476a60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb4], 3
call fcn.00476a60
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 2
call fcn.00476a60
lea ecx, [esp + 0x50]
mov byte [esp + 0xb4], 1
call fcn.00476a60
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 0
call fcn.00404a00
lea ecx, [esp + 0x8c]
mov dword [esp + 0xb4], 0xffffffff
call fcn.00404a00
mov al, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4
lea ecx, [esp + 0x8c]
call fcn.00404150
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.004beae0
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.004e81e0
lea ecx, [esp + 0x8c]
mov edi, eax
call fcn.0046fb70
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00404150
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00420590
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.004e81e0
cmp esi, 2
jbe 0x4d09e1
lea ecx, [edi + 2]
sub eax, edi
lea ebp, [esi - 2]
nop
mov dl, byte [eax + ecx]
and byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x4d09d0
mov ebp, dword [esp + 0x14]
push ebx
push esi
push edi
call fcn.004bf0b0
add esp, 0xc
jmp 0x4d07f6