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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov ecx, dword [ebp]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x34], 0xffffffff
movzx eax, byte [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [eax + edx + 0x54]
push edi
lea edi, [eax + edx + 8]
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
test ebx, ebx
jne 0x4f50d1
test byte [eax + 0x2a], 0x20
je 0x4f5057
mov ebx, dword [eax + 8]
jmp 0x4f50d1
push 0x3c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00412eb0
mov ecx, 1
mov word [esp + 0x7e], cx
mov edx, ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ecx
mov word [esp + 0x80], dx
mov byte [esp + 0x82], 5
mov dword [esp + 0x58], eax
mov dx, word [eax + 0x28]
mov word [esp + 0x7c], dx
mov ax, word [eax + 0x26]
xor ecx, ecx
add esp, 0xc
mov word [esp + 0x28], ax
mov word [esp + 0x2a], cx
test byte [edi + 0x28], 1
jne 0x4f50c5
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x40]
movzx edx, word [eax + 0x26]
cmp dx, 0xa
mov dword [esp + 0x3c], edx
jg 0x4f50e9
mov dword [esp + 0x2c], 0
jmp 0x4f510a
movsx eax, dx
cdq
push edx
push eax
call fcn.004c07e0
add esp, 8
sub ax, 0x21
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
cmp dword [ebp + 0x10], 0
jne 0x4f5258
test byte [ecx + 0x22], 0x80
jne 0x4f5258
mov edx, dword [ecx]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x100000
je 0x4f5258
cmp dword [edi + 0x4c], 0
jne 0x4f5258
mov ecx, dword [edi + 0x28]
test cl, 1
jne 0x4f5258
test byte [eax + 0x2a], 0x20
jne 0x4f5258
test cl, 0x28
jne 0x4f5258
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea edx, [eax + eax*2]
shl edx, 4
add edx, edi
mov dword [esp + 0x30], edx
mov edi, edi
cmp edi, edx
jae 0x4f5249
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4f522f
push eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.004d9cb0
add esp, 8
test eax, eax
je 0x4f522b
mov edx, 1
xor eax, eax
mov ecx, edx
mov word [esi + 0x18], dx
mov edx, dword [esi + 0x30]
mov word [esi + 0x2a], ax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x2c]
mov dword [edx], edi
mov edx, dword [esp + 0x14]
lea eax, [ecx + eax + 4]
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], 0
jne 0x4f51e8
test byte [edx + 0x2a], 2
jne 0x4f51e8
add eax, 0x18
mov word [esi + 0x12], ax
mov edx, 0x2b
mov eax, edx
mov word [esi + 0x16], dx
call fcn.004c0790
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
or ecx, dword [esp + 0x88]
or eax, dword [esp + 0x84]
mov dword [esi + 4], ecx
push esi
mov ecx, ebp
mov dword [esi], eax
call fcn.004d4760
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x30]
add edi, 0x30
cmp dword [esp + 0x10], 0
je 0x4f5170
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp dword [esp + 0x10], 0
jne 0x4f5441
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x4f5441
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4f5281
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [edi + 0x30]
push edx
push eax
call fcn.004d49f0
add esp, 0xc
test eax, eax
je 0x4f542f
mov ecx, dword [ebx + 8]
movzx edi, word [ecx]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esi + 0x2a], ax
mov eax, dword [esp + 0x84]
mov word [esi + 0x28], cx
mov byte [esi + 0x11], cl
mov ecx, dword [esp + 0x88]
mov word [esi + 0x18], dx
mov word [esi + 0x12], dx
mov edx, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebx
mov eax, dword [edx + 0x30]
push eax
push ebx
push ebp
call fcn.004d48c0
add esp, 0xc
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x3c], eax
jg 0x4f5317
mov edx, dword [esp + 0x20]
neg eax
sbb al, al
and al, byte [esp + 0x24]
push edi
lea ecx, [edi + 0x10]
push esi
push edx
mov dword [esi + 0x24], 0x100
mov byte [esi + 0x11], al
mov word [esi + 0x14], cx
call fcn.004c9c10
push esi
mov ecx, ebp
call fcn.004d4760
add esp, 0x10
mov word [esi + 0x16], di
test eax, eax
jne 0x4f5445
jmp 0x4f5414
test byte [ebx + 0x38], 0x20
je 0x4f532e
xor ebp, ebp
xor edx, edx
mov dword [esi + 0x24], 0x240
mov dword [esp + 0x34], edx
jmp 0x4f535c
mov eax, ebx
call fcn.004c9d60
mov ebp, eax
mov eax, dword [esp + 0x18]
not ebp
and ebp, dword [eax + 0x40]
not edx
and edx, dword [eax + 0x44]
mov eax, ebp
or eax, edx
mov dword [esp + 0x34], edx
mov eax, 0x240
je 0x4f5359
mov eax, 0x200
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4f53ae
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x2a], 0x20
jne 0x4f53ae
mov ecx, ebp
or ecx, edx
jne 0x4f540d
test byte [ebx + 0x38], 4
jne 0x4f540d
mov dx, word [ebx + 0x30]
mov ecx, dword [esp + 0x14]
cmp dx, word [ecx + 0x28]
jge 0x4f540d
mov edx, dword [esp + 0x1c]
test byte [edx + 0x22], 4
jne 0x4f540d
cmp dword [0x59bf20], eax
je 0x4f540d
mov ecx, edx
mov edx, dword [ecx]
mov ecx, dword [edx]
test byte [ecx + 0x3c], 0x40
jne 0x4f540d
mov edx, dword [esp + 0x14]
neg eax
sbb al, al
and al, byte [esp + 0x24]
mov byte [esi + 0x11], al
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [edx + 0x28]
cdq
idiv ecx
or ebp, dword [esp + 0x34]
lea ecx, [eax + edi + 1]
mov word [esi + 0x14], cx
je 0x4f53e9
lea eax, [edi + 0x10]
call fcn.004c0790
mov word [esi + 0x14], ax
mov edx, dword [esp + 0x20]
push edi
push esi
push edx
call fcn.004c9c10
mov ecx, dword [esp + 0x8c]
push esi
call fcn.004d4760
add esp, 0x10
mov word [esi + 0x16], di
test eax, eax
jne 0x4f5445
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x18]
push 0
push ebx
push edi
push ebp
call fcn.004f4a20
add esp, 0x10
cmp dword [edi + 0x4c], 0
mov dword [esp + 0x10], eax
jne 0x4f5441
inc dword [esp + 0x24]
cmp dword [esp + 0x10], 0
mov ebx, dword [ebx + 0x14]
je 0x4f5258
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret