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

Disassembly:
push 0xffffffffffffffff
push 0x56b041
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov al, byte [esp + 0x4c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x3c], al
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
push 6
push 0x5aca10
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], edi
call fcn.005318a0
push 6
push 0x59c0fc
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 1
call fcn.005318a0
push 6
push 0x59c0f4
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 2
call fcn.005318a0
push edi
push edi
push ecx
mov byte [esp + 0x60], 3
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x59b910
mov byte [esp + 0x28], 0
call fcn.005318a0
push ecx
mov byte [esp + 0x64], 4
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x59c0ec
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0x64], 3
call fcn.00533b90
mov ebp, dword [esp + 0x5c]
and ebp, 0xff
lea ecx, [ebp + ebp*2]
lea eax, [ebp + ecx*4]
shl eax, 2
mov dword [esp + 0x2c], eax
mov di, word [eax + 0x57bf68]
mov bl, byte [eax + 0x57bf72]
mov al, byte [eax + 0x57bf7c]
cmp al, bl
mov byte [esp + 0x24], al
jbe 0x4d2aa7
mov ecx, dword [esp + 0x24]
lea edx, [ebp + ebp*2]
and ecx, 0xff
lea eax, [ebp + edx*4]
lea edx, [ecx + eax*2]
lea ecx, [esi + 0xf]
push ecx
lea ecx, [esi + 0x78]
mov ax, word [edx*2 + 0x57bf7c]
movsx eax, ax
lea edx, [eax + eax*2]
lea eax, [edx*4 + 0x5ac4f0]
push eax
call fcn.0043c6b0
cmp byte [esp + 0x5c], 0xf
jne 0x4d2ab3
mov byte [esp + 0x14], 0x24
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x59b910
call fcn.005318a0
push ecx
mov byte [esp + 0x64], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x59c0e4
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0x64], 3
call fcn.00533b90
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.004d3070
push edi
push 5
lea ecx, [esp + 0x28]
call fcn.00531ad0
xor ax, ax
mov al, bl
mov word [esp + 0x12], ax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00531810
mov ecx, dword [0x5c6634]
call fcn.005396d0
mov ax, word [esp + 0x12]
cmp ax, 1
jl 0x4d2b7c
mov ecx, dword [esp + 0x2c]
movsx edi, ax
lea esi, [ecx + 0x57bf73]
mov dl, byte [esi]
lea ecx, [esp + 0x1c]
push edx
push 5
call fcn.00531ad0
push 1
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00531810
mov ecx, dword [0x5c6634]
call fcn.00539850
inc esi
dec edi
jne 0x4d2b4c
mov cl, byte [esp + 0x3c]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x44], esp
mov dword [esp + 0x44], esi
mov byte [esi], cl
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x4d2b9b
xor eax, eax
jmp 0x4d2ba4
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x4d2baa
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
add esp, 4
mov esi, eax
cmp edi, ecx
mov ebx, ecx
mov dword [esp + 0x40], esi
je 0x4d2bf9
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0x64], 6
je 0x4d2be6
push edi
mov ecx, esi
call fcn.00531810
add edi, 4
add esi, 4
cmp edi, ebx
mov byte [esp + 0x64], 3
mov dword [esp + 0x40], esi
jne 0x4d2bd1
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
call fcn.004d2e90
test ax, ax
je 0x4d2d05
mov ecx, dword [0x5c6634]
call fcn.00539bf0
mov si, ax
inc esi
test si, si
je 0x4d2b18
cmp byte [esp + 0x5c], 0xf
je 0x4d2c8f
lea eax, [ebp + ebp*2]
mov edi, dword [esp + 0x18]
movsx edx, si
lea ecx, [ebp + eax*4]
lea eax, [edx + ecx*2]
mov al, byte [eax*2 + 0x57bf7c]
cmp al, 0xff
mov byte [esp + 0x24], al
je 0x4d2c75
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0xf]
and eax, 0xff
push ecx
lea ecx, [edi + 0x78]
lea edx, [eax + eax*2]
lea eax, [edx*4 + 0x5ac4f0]
push eax
call fcn.0043c6b0
mov ecx, dword [esp + 0x2c]
movzx dx, byte [ecx + 0x57bf72]
cmp si, dx
je 0x4d2d68
jmp 0x4d2b18
movsx eax, si
dec eax
je 0x4d2cea
dec eax
je 0x4d2ca4
dec eax
je 0x4d2dd6
jmp 0x4d2b18
movzx ax, byte [esp + 0x14]
cmp ax, word [0x57c28c]
jbe 0x4d2b18
mov bl, byte [esp + 0x14]
dec bl
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
and eax, 0xff
lea edx, [ecx + 0xf]
push edx
add ecx, 0x78
lea eax, [eax + eax*2]
lea edx, [eax*4 + 0x5ac4f0]
push edx
call fcn.0043c6b0
jmp 0x4d2b18
movzx ax, byte [esp + 0x14]
cmp ax, word [0x57c28a]
jae 0x4d2b18
mov bl, byte [esp + 0x14]
inc bl
jmp 0x4d2cbd
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 2
call fcn.00531940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.00531940
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0
call fcn.00531940
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp esi, eax
mov dword [esp + 0x54], 0xffffffff
mov edi, eax
je 0x4d2d57
mov ecx, esi
call fcn.00531940
add esi, 4
cmp esi, edi
jne 0x4d2d45
mov esi, dword [esp + 0x40]
push esi
call fcn.00556360
add esp, 4
xor ax, ax
jmp 0x4d2e76
cmp byte [edi + 0xd], 0xf1
jne 0x4d2d7f
lea eax, [edi + 0xf]
lea ecx, [edi + 0x78]
push eax
push 0x5ac4f0
call fcn.0043c6b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 2
call fcn.00531940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.00531940
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0
call fcn.00531940
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp esi, eax
mov dword [esp + 0x54], 0xffffffff
mov edi, eax
je 0x4d2e69
mov ecx, esi
call fcn.00531940
add esi, 4
cmp esi, edi
jne 0x4d2dc3
jmp 0x4d2e65
lea ecx, [ebp + ebp*2]
movsx eax, si
lea edx, [ebp + ecx*4]
lea ecx, [eax + edx*2]
mov al, byte [ecx*2 + 0x57bf7c]
cmp al, 0xff
mov byte [esp + 0x24], al
je 0x4d2e17
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
and eax, 0xff
lea edx, [ecx + 0xf]
add ecx, 0x78
lea eax, [eax + eax*2]
push edx
lea edx, [eax*4 + 0x5ac4f0]
push edx
call fcn.0043c6b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 2
call fcn.00531940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.00531940
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0
call fcn.00531940
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp esi, eax
mov dword [esp + 0x54], 0xffffffff
mov edi, eax
je 0x4d2e69
mov ecx, esi
call fcn.00531940
add esi, 4
cmp esi, edi
jne 0x4d2e57
mov esi, dword [esp + 0x40]
push esi
call fcn.00556360
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 4