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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x9c]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x40]
add eax, edx
push edi
test ecx, ecx
je 0x6d00a0
lea edi, [ecx + edx]
jmp 0x6d00a2
xor edi, edi
test edi, edi
je 0x6d00da
test byte [esi + 0x60], 3
je 0x6d00da
movzx cx, byte [edi + 0x4a]
movzx edx, byte [edi + 0x4b]
shl cx, 8
movsx ecx, cx
or ecx, edx
movzx dx, byte [edi + 0x4c]
movzx edi, byte [edi + 0x4d]
shl dx, 8
movsx edx, dx
neg ecx
or edx, edi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
jmp 0x6d010e
movzx cx, byte [eax + 0x2a]
movzx edx, byte [eax + 0x2b]
shl cx, 8
movsx ecx, cx
or ecx, edx
movzx edx, byte [eax + 0x27]
neg ecx
mov dword [ebp + 8], ecx
movzx cx, byte [eax + 0x26]
shl cx, 8
movsx ecx, cx
or ecx, edx
neg ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp ecx, edx
jl 0x6d0119
xor eax, eax
jmp 0x6d052e
movzx di, byte [eax + 0x24]
push ebx
movzx ebx, byte [eax + 0x25]
shl di, 8
movsx edi, di
or edi, ebx
movzx bx, byte [eax + 0x28]
movzx eax, byte [eax + 0x29]
shl bx, 8
movsx ebx, bx
or ebx, eax
mov eax, dword [esi + 0x14]
test eax, 0x4000
je 0x6d0166
push 0x5700
push edx
call fcn.0073cbea
push 0x5700
push dword [ebp + 8]
sub edi, eax
call fcn.0073cbea
sub ebx, eax
jmp 0x6d0189
test eax, 0x4000000
je 0x6d018f
push 0x5700
push edi
call fcn.0073cbea
add dword [ebp + 8], eax
push 0x5700
push ebx
call fcn.0073cbea
add dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp edi, ebx
jge 0x6d052d
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x60]
test al, 1
je 0x6d02d6
test al, 8
jne 0x6d02d6
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x4c]
push ecx
push eax
mov dword [ebp - 0xc], eax
call fcn.0073cbea
push dword [ebp - 4]
mov dword [ebp + 8], eax
push dword [ebp - 0xc]
call fcn.0073cbea
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
jle 0x6d0234
test dword [esi + 0x14], 0x340000
jne 0x6d01f1
push esi
call fcn.006d15cb
mov eax, dword [ebp - 4]
test byte [esi + 0x60], 4
mov ecx, dword [ebp + 8]
jne 0x6d0202
mov dword [esi + 0x80], ecx
jmp 0x6d0218
cmp ecx, dword [esi + 0x80]
jge 0x6d0210
mov dword [esi + 0x80], ecx
cmp eax, dword [esi + 0x84]
jle 0x6d021e
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x80]
neg eax
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x84]
mov dword [esi + 0x74], eax
jmp 0x6d024d
mov ecx, dword [ebp + 8]
mov edx, eax
neg edx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], edx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
cmp dword [esi + 0x64], 0
jne 0x6d0272
mov eax, dword [esi + 4]
movsx eax, word [eax + 0x116]
push eax
push dword [ebp - 0xc]
call fcn.0073cbea
mov dword [esi + 0x64], eax
test eax, eax
jge 0x6d0272
neg eax
mov dword [esi + 0x64], eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x64]
push 0x48
shl eax, 0x10
push eax
call fcn.0073ca88
push dword [ebp - 8]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x84]
sub eax, dword [esi + 0x80]
shl edi, 4
push edi
mov dword [ebp - 0x10], eax
call fcn.0073cbea
push dword [ebp - 8]
shl ebx, 4
push ebx
mov edi, eax
call fcn.0073cbea
cmp dword [ebp - 8], 0
jge 0x6d02bb
mov ecx, edi
mov edi, eax
mov eax, ecx
sar edi, 4
dec edi
add eax, 0xf
dec edi
sar eax, 4
inc eax
mov dword [esi + 0x7c], eax
sub eax, edi
mov dword [esi + 0x78], edi
mov edi, eax
jmp 0x6d0439
mov eax, dword [esi + 4]
movzx eax, word [eax + 0xe4]
shr eax, 6
sub ecx, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
push 4
lea ecx, [ebp - 0x38]
push ecx
add edx, eax
lea ecx, [ebp - 0x58]
lea eax, [esi + 0x24]
push ecx
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edx
call fcn.006cd6d2
test eax, eax
je 0x6d052b
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
xor ecx, ecx
inc ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov edx, ecx
mov eax, dword [ebp + edx*8 - 0x58]
cmp eax, dword [ebp - 8]
jge 0x6d033d
mov dword [ebp - 8], eax
cmp eax, ebx
jle 0x6d0343
mov ebx, eax
mov eax, dword [ebp + edx*8 - 0x54]
cmp eax, dword [ebp - 0xc]
jge 0x6d034f
mov dword [ebp - 0xc], eax
cmp eax, edi
jle 0x6d0355
mov edi, eax
inc edx
cmp edx, 4
jl 0x6d0331
sar dword [ebp - 8], 4
sar dword [ebp - 0xc], 4
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
or dword [ebp - 0x2c], 0xffffffff
add ebx, 0xf
sar ebx, 4
mov eax, ebx
sub eax, dword [ebp - 8]
add edi, 0xf
mov dword [ebp - 0x18], eax
sar edi, 4
mov eax, edi
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xa0]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.006cd7dc
mov dword [ebp - 0x14], eax
lea eax, [esi + 0xa4]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.006cd7dc
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x6d052b
push dword [ebp + 8]
lea eax, [esi + 0xa4]
push eax
call fcn.006cd954
push dword [ebp - 4]
neg eax
mov dword [esi + 0x70], eax
lea eax, [esi + 0xa4]
push eax
call fcn.006cd954
mov ecx, dword [esi + 0x70]
add eax, 0xf
sar eax, 4
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 8]
add ecx, 0xf
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0xc]
sar ecx, 4
push esi
mov dword [esi + 0x70], ecx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], edi
call fcn.006cfc09
push 0x48
push dword [esi + 0x1c]
mov dword [esi + 0x68], eax
push eax
call fcn.0073ca88
mov edi, dword [ebp - 0x18]
add eax, 0x8000
sar eax, 0x10
movzx eax, ax
mov dword [esi + 0x64], eax
test byte [esi + 0x60], 3
je 0x6d0465
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x4c]
cmp ecx, eax
je 0x6d044f
neg eax
cmp ecx, eax
jne 0x6d0465
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
cmp ecx, eax
je 0x6d045f
neg eax
cmp ecx, eax
jne 0x6d0465
push esi
call fcn.006cfc4e
test dword [esi + 0x14], 0x2000
je 0x6d0476
push esi
call fcn.006cf5ba
jmp 0x6d047f
xor eax, eax
mov word [esi + 0xac], ax
test edi, edi
je 0x6d052b
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x6d052b
mov ecx, dword [esi + 0x14]
test ecx, 0x2000
je 0x6d04a8
movzx eax, word [esi + 0xac]
add edi, eax
add ebx, eax
add edi, 7
and edi, 0xfffffff8
lea eax, [edi + 0x1f]
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
mul ebx
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], ebx
test edx, edx
ja 0x6d052b
cmp eax, 0xffffffff
ja 0x6d052b
push esi
test ecx, 0x600000
jne 0x6d04e4
call fcn.006cfdab
jmp 0x6d04e9
call fcn.006cffc1
mov eax, dword [esi + 0x14]
test eax, 0x10000
je 0x6d0508
test eax, 0x700000
jne 0x6d0504
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
jmp 0x6d0514
mov eax, edi
jmp 0x6d0514
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, ebx
add eax, 3
and eax, 0xfffffffc
add eax, 0x18
mov dword [esi + 0x90], eax
xor eax, eax
inc eax
jmp 0x6d052d
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4