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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov dword [esp + 0x1c], edx
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [0xa70a24]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4d77d9
and dword [esp + 0x64], 0
and dword [esp + 0x60], 0
and dword [esp + 0x70], 0
mov ebx, dword [esp + 0x1c]
mov ecx, esi
call fcn.004c92a1
add ebx, dword [eax + 0xd8]
mov ecx, esi
call fcn.004c92a1
xor ecx, ecx
cmp ebx, dword [eax + 0xd4]
mov eax, 0xff
setne cl
cmovae eax, ecx
test al, al
je 0x4d7880
movzx eax, al
mov ecx, esi
cmp eax, 1
jne 0x4d7844
call fcn.004c92a1
mov al, byte [eax + 0x20]
add al, 0xfa
movzx ecx, al
cmp al, 6
push 6
pop eax
cmovb eax, ecx
cmp al, 6
ja 0x4d77bc
movzx eax, al
push 0x54
pop ecx
bt ecx, eax
jb 0x4d7880
mov ecx, esi
call fcn.004c9289
mov ecx, dword [esp + 0x18]
mov edx, esi
mov dword [eax + 0xd4], ebx
call fcn.004cb333
jmp 0x4d7880
mov ecx, 0xa6f794
mov edi, edx
call fcn.0040e00b
test al, al
je 0x4d7744
mov ecx, dword [0xa6f794]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x4d7744
mov eax, dword [0xa6f794]
mov ebx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
mov dword [esp + 0x14], eax
test ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
je 0x4d789a
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
and dword [esp + 0x40], 0
xor eax, eax
inc eax
mov dword [esp + 4], eax
mov eax, ecx
jmp 0x4d78a4
call fcn.004c9289
mov ecx, esi
mov dword [eax + 0xd4], ebx
call fcn.004c92a1
mov eax, dword [eax + 0x3c]
xor edi, edi
test eax, eax
cmovg edi, eax
sub edi, ebx
jbe 0x4d7880
mov ebx, dword [ebp + 0xc]
mov ecx, esi
call fcn.004c9289
sub dword [eax + 0x3c], edi
mov ecx, dword [esp + 0x18]
mov edx, edi
push ebx
push esi
call fcn.004caadb
pop eax
pop ecx
lea esi, [esp + 0x60]
mov ecx, esi
call fcn.0058bfa1
mov ecx, esi
call fcn.004cb2d7
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], 0
xor eax, eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x78]
mov dword [edx], eax
push 0x9c4c44
call fcn.0057917a
pop eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004c92a1
mov ecx, dword [esp + 4]
add eax, 0xcc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
cmp ecx, ebx
jae 0x4d78f9
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
inc ecx
mov ebx, ecx
jmp 0x4d78fd
mov ebx, ecx
xor eax, eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x8c]
mov dword [edx], eax
push 0x9c4c44
call fcn.0057917a
pop eax
mov edx, dword [esp + 0x20]
cmp ebx, edx
jae 0x4d793c
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
inc ebx
jmp 0x4d793e
xor eax, eax
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x14]
mov ebx, edx
lea edx, [esp + 0x30]
mov dword [edx], eax
add ecx, 0x1c
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xa0]
push 0x9c4c44
call fcn.0057917a
pop eax
mov ecx, esi
call fcn.004c92a1
mov ecx, dword [esp + 4]
add edi, dword [eax + 0xd8]
mov eax, 0
cmp ecx, ebx
mov dword [esp + 0x2c], edi
jae 0x4d79a1
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
lea edi, [esp + 0x30]
lea ebx, [esp + 0xc0]
mov dword [edi], eax
mov ecx, ebx
mov edx, edi
push 0x9c4c44
call fcn.0057917a
pop eax
mov ecx, esi
call fcn.004c92a1
lea ecx, [esp + 0x78]
lea edx, [esp + 0xa0]
add eax, 0xd4
mov dword [edi], ecx
lea ecx, [esp + 0x28]
mov dword [edi + 4], ecx
lea ecx, [esp + 0x8c]
mov dword [edi + 8], 0x9c4c34
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x1c]
mov dword [edi + 0x10], ecx
mov ecx, 0x9c4c54
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
lea edx, [esp + 0x2c]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], 0x9ba4ac
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xb4]
mov dword [eax], edi
lea edi, [esp + 0x60]
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
mov ecx, edi
push eax
call fcn.00605c1b
pop eax
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x4d7753
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push edi
call fcn.00606ebe
pop eax
jmp 0x4d7753