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

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x68]
push ebx
push esi
push edi
mov edi, dword [esp + 0x70]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [edi + 8]
sub edx, eax
sar edx, 0xc
mov word [esp + 0x30], dx
mov edx, dword [edi + 0xc]
sub esi, edx
sar esi, 0xc
mov word [esp + 0x32], si
mov esi, dword [edi + 0x10]
sub ecx, esi
sar ecx, 0xc
mov word [esp + 0x34], cx
mov ecx, dword [esp + 0x78]
mov ebx, dword [ecx]
sub ebx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub eax, edx
sar eax, 0xc
mov word [esp + 0x3a], ax
sub ecx, esi
lea edx, [esp + 0x4c]
lea eax, [edi + 0x164]
sar ebx, 0xc
sar ecx, 0xc
push edx
push eax
mov word [esp + 0x40], bx
mov word [esp + 0x44], cx
call fcn.0046d3e0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [0x610b28], eax
mov eax, dword [esp + 0x38]
mov dword [0x610b20], ecx
mov ecx, dword [esp + 0x60]
mov dword [0x610b24], edx
mov dx, word [esp + 0x64]
push 0
push eax
mov dword [0x610b2c], ecx
mov word [0x610b30], dx
call fcn.0046e270
mov ecx, dword [esp + 0x44]
push 1
push ecx
call fcn.0046e270
push 0
push 3
push 0
push 0
push 1
call fcn.0046e0f0
lea edx, [esp + 0x5c]
push edx
call fcn.0046da10
mov eax, dword [esp + 0x68]
push 0
push eax
call fcn.0046e270
mov ecx, dword [esp + 0x74]
push 1
push ecx
call fcn.0046e270
add esp, 0x40
push 0
push 3
push 0
push 0
push 1
call fcn.0046e0f0
lea edx, [esp + 0x4c]
push edx
call fcn.0046da10
push edi
call fcn.00433d60
mov ecx, dword [esp + 0x98]
xor edx, edx
mov esi, eax
add esp, 0x1c
mov word [ecx + 6], 0xffff
mov dl, byte [edi + 0x1f]
mov eax, edx
add esi, 0x18
shl eax, 4
add eax, edx
mov dword [esp + 0x78], 0xffffffff
shl eax, 2
mov dword [esp + 0x70], 2
mov dword [esp + 0x74], 1
mov edx, dword [eax + 0x6b2458]
mov ebx, dword [eax + 0x6b2454]
add ebx, 4
mov edx, dword [edx + 8]
cmp edx, 1
mov dword [esp + 0xc], edx
jle 0x4f7f1e
push ebp
mov eax, dword [esp + 0x74]
mov edx, dword [edi + 0x194]
test eax, edx
jne 0x4f7ef8
mov ax, word [esi + 0x12]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x36]
mov ebp, dword [esp + 0x38]
sar ax, 4
sub ecx, eax
mov word [esp + 0x2c], cx
mov cx, word [esi + 0x14]
sar cx, 4
sub edx, ecx
mov word [esp + 0x2e], dx
mov dx, word [esi + 0x16]
sar dx, 4
sub ebp, edx
mov word [esp + 0x30], bp
mov ebp, dword [esp + 0x3c]
sub ebp, eax
mov eax, dword [esp + 0x3e]
sub eax, ecx
mov ecx, dword [esp + 0x40]
sub ecx, edx
lea edx, [esp + 0x50]
push edx
push esi
mov word [esp + 0x2c], bp
mov word [esp + 0x2e], ax
mov word [esp + 0x30], cx
call fcn.0046d3e0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [0x610b28], edx
mov edx, dword [esp + 0x34]
xor ebp, ebp
mov dword [0x610b20], eax
mov eax, dword [esp + 0x64]
mov dword [0x610b24], ecx
mov cx, word [esp + 0x68]
push ebp
push edx
mov dword [0x610b2c], eax
mov word [0x610b30], cx
call fcn.0046e270
mov eax, dword [esp + 0x40]
push 1
push eax
call fcn.0046e270
push ebp
push 3
push ebp
push ebp
push 1
call fcn.0046e0f0
lea ecx, [esp + 0x58]
push ecx
call fcn.0046da10
mov edx, dword [esp + 0x54]
push ebp
push edx
call fcn.0046e270
mov eax, dword [esp + 0x60]
push 1
push eax
call fcn.0046e270
add esp, 0x40
push ebp
push 3
push ebp
push ebp
push 1
call fcn.0046e0f0
lea ecx, [esp + 0x38]
push ecx
call fcn.0046da10
mov eax, dword [ebx]
add esp, 0x18
add eax, 0xc
mov word [esp + 0x1c], bp
mov word [esp + 0x1e], bp
mov word [esp + 0x20], bp
mov word [esp + 0x14], bp
mov ecx, dword [esp + 0x84]
mov word [esp + 0x16], bp
cmp ecx, 0x1000
mov word [esp + 0x18], bp
jne 0x4f7dc9
mov dx, word [eax]
add eax, 2
mov word [esp + 0x1c], dx
mov cx, word [eax]
add eax, 2
mov word [esp + 0x14], cx
mov dx, word [eax]
add eax, 2
mov word [esp + 0x1e], dx
mov cx, word [eax]
add eax, 2
mov word [esp + 0x16], cx
mov dx, word [eax]
mov word [esp + 0x20], dx
mov ax, word [eax + 2]
jmp 0x4f7e25
movsx edx, word [eax]
imul edx, ecx
sar edx, 0xc
add eax, 2
mov word [esp + 0x1c], dx
movsx edx, word [eax]
imul edx, ecx
sar edx, 0xc
add eax, 2
mov word [esp + 0x14], dx
movsx edx, word [eax]
imul edx, ecx
sar edx, 0xc
add eax, 2
mov word [esp + 0x1e], dx
movsx edx, word [eax]
imul edx, ecx
sar edx, 0xc
add eax, 2
mov word [esp + 0x16], dx
movsx edx, word [eax]
imul edx, ecx
sar edx, 0xc
mov word [esp + 0x20], dx
movsx eax, word [eax + 2]
imul eax, ecx
sar eax, 0xc
lea ecx, [esp + 0x24]
mov word [esp + 0x18], ax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004f7680
add esp, 0x10
test eax, eax
je 0x4f7ef1
movsx edx, word [esp + 0x24]
movsx eax, word [esp + 0x2c]
movsx ecx, word [esp + 0x26]
sub eax, edx
movsx edx, word [esp + 0x2e]
mov dword [esp + 0x44], eax
sub edx, ecx
movsx eax, word [esp + 0x28]
movsx ecx, word [esp + 0x30]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x44]
sub ecx, eax
push edx
mov dword [esp + 0x50], ecx
call fcn.0046d870
call fcn.0046dd00
lea eax, [esp + 0x48]
push eax
call fcn.0046d790
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
add edx, ecx
add edx, eax
push edx
call fcn.0046d430
mov ecx, dword [esp + 0x88]
add esp, 0xc
cmp eax, ecx
jae 0x4f7ef1
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
mov ax, word [esp + 0x78]
shl edx, 4
mov word [ecx + 6], ax
mov eax, dword [esp + 0x26]
mov word [ecx], dx
mov edx, dword [esp + 0x28]
shl eax, 4
shl edx, 4
mov word [ecx + 2], ax
mov word [ecx + 4], dx
jmp 0x4f7ef8
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
add ebx, 4
shl ebp, 1
add esi, 0x18
inc eax
cmp eax, edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], eax
jl 0x4f7c52
pop ebp
xor eax, eax
cmp word [ecx + 6], 0xffff
pop edi
pop esi
setne al
pop ebx
add esp, 0x60
ret