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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x14]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [ecx], eax
je 0x38f15
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
je 0x38f07
cmp dword [ecx], eax
jne 0x38f18
mov dword [ebx + 0x5c], 0xffffffec
xor eax, eax
jmp 0x3980e
mov dword [ebp + 0x18], eax
cmp dword [ebx + 0x30], eax
jne 0x38f2c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
jmp 0x38f36
mov dword [ebp - 4], 2
lea eax, [ebx + 0x28]
push esi
push edi
mov dword [ebx + 0x10], eax
cmp dword [ebp - 4], 1
je 0x38fba
cmp dword [ebp - 4], 2
jne 0x39840
xor esi, esi
cmp dword [ebx + 0x64], esi
je 0x38f64
push 1
push dword [ebp + 0x1c]
mov eax, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.000367c7
mov edi, dword [ebx + 0x30]
cmp edi, esi
je 0x39813
cmp dword [ebx + 0x14], esi
jne 0x38f8d
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x30], esi
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], 1
jmp 0x38f38
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x39802
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov cl, byte [ecx]
mov byte [edi + ebx + 0x28], cl
inc dword [ebx + 0x30]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x14], ecx
inc dword [eax]
dec dword [esi]
mov dword [ebp - 4], 1
jmp case.default.0x38fc5
mov eax, dword [ebx]
cmp eax, 0x16
ja case.default.0x38fc5
jmp dword [eax*4 + 0x398a0]
lea esi, [ebx + 8]
push esi
call fcn.00034896
test eax, eax
jne 0x38fe5
mov dword [ebp - 4], 2
jmp case.default.0x38fc5
mov eax, esi
call fcn.00034a0f
mov dword [ebx + 0x1360], eax
cmp eax, 9
jne 0x39003
mov dword [ebp - 4], 0xfffffff3
jmp case.default.0x38fc5
xor esi, esi
inc esi
mov ecx, eax
mov edx, esi
shl edx, cl
lea ecx, [edx - 0x10]
lea edx, [ebx + 0x133c]
mov eax, dword [edx]
cmp eax, ecx
mov dword [ebx + 0x38], ecx
jl 0x39028
sub eax, ecx
add dword [ebx + 0x1338], eax
mov dword [edx], ecx
push 0x3030
push dword [ebx + 0x20]
call dword [ebx + 0x18]
mov dword [ebx + 0xa4], eax
test eax, eax
jne 0x39049
mov dword [ebp - 4], 0xffffffe2
jmp case.default.0x38fc5
add eax, 0x1da0
mov dword [ebx + 0xa8], eax
mov dword [ebx], esi
push ebx
call fcn.0003867d
mov dword [ebx], 2
lea edx, [ebx + 8]
mov esi, ebx
call fcn.00034bc7
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
test byte [ebx + 0x135c], 6
je 0x390ae
mov ecx, dword [edx + 4]
mov eax, ecx
neg eax
and eax, 7
je 0x390ae
mov esi, dword [edx]
mov edi, dword [eax*4 + 0x160670]
shr esi, cl
lea ecx, [ecx + eax]
mov dword [edx + 4], ecx
and edi, esi
je 0x390ae
mov dword [ebp - 4], 0xfffffff2
jmp case.default.0x38fc5
test byte [ebx + 0x135c], 4
je 0x390c2
mov dword [ebx], 0xa
jmp case.default.0x38fc5
cmp dword [ebx + 0xb4], 0
jne 0x390d6
mov dword [ebx], 0xc
jmp case.default.0x38fc5
mov eax, ebx
call fcn.00036a84
test byte [ebx + 0x135c], 2
je 0x390f1
mov dword [ebx], 9
jmp case.default.0x38fc5
and dword [ebx + 4], 0
mov dword [ebx], 0xf
jmp case.default.0x38fc5
push dword [ebp + 0x1c]
mov eax, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0003697f
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
jmp 0x390cb
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x38fd9
shr dword [ebx + 8], 8
mov eax, dword [ebx + 0x10]
movzx esi, byte [eax]
mov edx, dword [ebx + 8]
add dword [ebx + 0xc], 0xfffffff8
shl esi, 0x18
or esi, edx
dec ecx
inc eax
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
push 0x20
pop eax
sub eax, dword [ebx + 0xc]
cmp eax, 8
jb 0x3911e
add dword [ebx + 0xc], 8
dec dword [ebx + 0xb4]
cmp dword [ebx + 0xb4], 0
jg 0x3914a
jmp 0x390cb
mov eax, dword [ebx + 4]
push 3
pop ecx
cmp eax, ecx
jl 0x3917e
mov dword [ebx], ecx
jmp case.default.0x38fc5
lea eax, [ebx + eax*4 + 0xc8]
push eax
push ebx
lea edx, [ebx + 8]
call fcn.00034a5f
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov eax, dword [ebx + 4]
lea eax, [ebx + eax*4 + 0xc8]
inc dword [eax]
mov eax, dword [ebx + 4]
cmp dword [ebx + eax*4 + 0xc8], 2
jae 0x391bd
inc eax
mov dword [ebx + 4], eax
jmp case.default.0x38fc5
mov dword [ebx], 0x10
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xa4]
mov eax, ecx
imul eax, eax, 0x278
lea eax, [edx + eax*4]
push 0
push eax
mov eax, dword [ebx + ecx*4 + 0xc8]
inc eax
inc eax
push eax
mov eax, ebx
call fcn.000387a7
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov dword [ebx], 0x11
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xa8]
imul eax, eax, 0x18c
push 0
lea eax, [ecx + eax*4]
push eax
push 0x1a
mov eax, ebx
call fcn.000387a7
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov dword [ebx], 0x12
mov eax, dword [ebx + 4]
mov edx, eax
imul edx, edx, 0x630
add edx, dword [ebx + 0xa8]
cmp dword [ebx + 0x1358], 0
lea eax, [ebx + eax*4 + 0xbc]
mov dword [ebp - 0xc], eax
jne 0x392ea
lea esi, [ebx + 8]
jmp 0x39281
cmp dword [esi + 0xc], 0
je 0x392d7
shr dword [esi], 8
mov eax, dword [esi + 8]
movzx edi, byte [eax]
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffff8
shl edi, 0x18
or edi, ecx
mov ecx, dword [esi + 0xc]
dec ecx
inc eax
mov dword [esi], edi
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
push 0x20
pop eax
sub eax, dword [esi + 4]
cmp eax, 0xf
jb 0x3925a
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shr eax, cl
and eax, 0x7fff
mov edi, eax
and edi, 0xff
lea edi, [edx + edi*4]
mov dl, byte [edi]
cmp dl, 8
jbe 0x392cb
movzx edx, dl
add ecx, 8
mov dword [esi + 4], ecx
mov ecx, dword [edx*4 + 0x160650]
sub edx, 8
shr eax, 8
and ecx, eax
movzx eax, word [edi + 2]
add ecx, eax
lea edi, [edi + ecx*4]
movzx eax, byte [edi]
add dword [esi + 4], eax
movzx eax, word [edi + 2]
jmp 0x392f0
lea eax, [ebp - 8]
push eax
call fcn.00035094
test eax, eax
je 0x38fd9
jmp 0x392f3
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
shl esi, 2
movzx edx, byte [esi + 0x160e4a]
push 0x20
pop ecx
lea eax, [ebx + 8]
sub ecx, dword [eax + 4]
mov dword [ebp + 8], esi
cmp ecx, edx
jae 0x39344
cmp dword [eax + 0xc], 0
je 0x39379
shr dword [eax], 8
mov ecx, dword [eax + 8]
movzx edi, byte [ecx]
mov esi, dword [eax]
add dword [eax + 4], 0xfffffff8
shl edi, 0x18
or edi, esi
mov esi, dword [eax + 0xc]
dec esi
inc ecx
mov dword [eax + 8], ecx
push 0x20
pop ecx
mov dword [eax], edi
mov dword [eax + 0xc], esi
sub ecx, dword [eax + 4]
cmp ecx, edx
jb 0x39310
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
shr edi, cl
mov ecx, dword [edx*4 + 0x160670]
and ecx, edi
mov edi, dword [eax + 4]
add edi, edx
mov dword [eax + 4], edi
movzx eax, word [esi + 0x160e48]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
and dword [ebx + 0x1358], 0
inc dword [ebx + 4]
jmp 0x390f5
mov eax, dword [ebp - 8]
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0x1358], 1
jmp 0x38fd9
lea eax, [ebx + 8]
jmp 0x393bf
mov edx, dword [eax + 0xc]
test edx, edx
je 0x38fd9
shr dword [eax], 8
mov ecx, dword [eax + 8]
movzx edi, byte [ecx]
mov esi, dword [eax]
add dword [eax + 4], 0xfffffff8
shl edi, 0x18
or edi, esi
dec edx
inc ecx
mov dword [eax], edi
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
push 0x20
pop ecx
sub ecx, dword [eax + 4]
cmp ecx, 6
jb 0x39396
mov ecx, dword [eax + 4]
mov edx, dword [eax]
shr edx, cl
add ecx, 6
mov dword [eax + 4], ecx
push dword [ebx + 0xc8]
and edx, 0x3f
push dword [ebx + 0x20]
mov ecx, edx
and ecx, 3
shr edx, 2
shl edx, cl
lea eax, [ebx + 0xec]
mov dword [eax], ecx
mov eax, ecx
add edx, 0x10
mov dword [ebx + 0xf0], edx
mov eax, dword [eax*4 + 0x160670]
mov dword [ebx + 0xf4], eax
call dword [ebx + 0x18]
mov dword [ebx + 0x1370], eax
test eax, eax
jne 0x39426
mov dword [ebp - 4], 0xffffffeb
jmp case.default.0x38fc5
and dword [ebx + 4], 0
mov dword [ebx], 4
mov eax, ebx
call fcn.00036ae1
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov dword [ebx], 0x13
lea eax, [ebx + 0x136c]
push eax
lea eax, [ebx + 0x1368]
push eax
mov eax, dword [ebx + 0xc8]
shl eax, 6
push eax
mov edi, ebx
call fcn.00038ae8
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
push 8
xor eax, eax
and dword [ebp + 8], eax
lea edi, [ebx + 0x1374]
pop ecx
rep stosd dword es:[edi], eax
cmp dword [ebx + 0xc8], eax
jbe 0x394f5
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x136c]
shl eax, 6
add eax, ecx
movzx ecx, byte [eax]
xor esi, esi
xor edx, edx
movzx edi, byte [eax]
xor edi, ecx
or esi, edi
inc edx
inc eax
movzx edi, byte [eax]
xor edi, ecx
or esi, edi
inc edx
inc eax
movzx edi, byte [eax]
xor edi, ecx
or esi, edi
inc edx
inc eax
movzx edi, byte [eax]
xor edi, ecx
or esi, edi
inc edx
inc eax
cmp edx, 0x40
jb 0x394a1
test esi, esi
jne 0x394e7
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
and ecx, 0x1f
inc edx
shr eax, 5
shl edx, cl
lea eax, [ebx + eax*4 + 0x1374]
or dword [eax], edx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0xc8]
jb 0x3948c
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0xec]
push 0x30
pop esi
shl esi, cl
lea ecx, [ebx + 0xfc]
push ecx
lea eax, [ebx + 0xf8]
add esi, dword [ebx + 0xf0]
push eax
mov eax, dword [ebx + 0xd0]
shl eax, 2
push eax
mov edi, ebx
call fcn.00038ae8
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
push dword [ebx + 0x1368]
lea eax, [ebx + 0x80]
push 0x100
push eax
push ebx
call fcn.00038734
push dword [ebx + 0xcc]
lea eax, [ebx + 0x8c]
push 0x2c0
push eax
push ebx
call fcn.00038734
push dword [ebx + 0xf8]
lea eax, [ebx + 0x98]
push esi
push eax
push ebx
call fcn.00038734
xor eax, eax
cmp dword [ebx + 0x84], eax
je 0x39889
cmp dword [ebx + 0x90], eax
je 0x39889
cmp dword [ebx + 0x9c], eax
je 0x39889
mov dword [ebx + 4], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 4]
sub eax, 0
je 0x395cc
dec eax
je 0x395c4
dec eax
jne 0x39892
lea edi, [ebx + 0x98]
jmp 0x395d2
lea edi, [ebx + 0x8c]
jmp 0x395d2
lea edi, [ebx + 0x80]
mov esi, ebx
call fcn.00038a64
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
inc dword [ebx + 4]
cmp dword [ebx + 4], 3
jl case.default.0x38fc5
mov eax, dword [ebx + 0xd8]
mov edx, dword [ebx + 0x136c]
mov ecx, eax
shl ecx, 6
add edx, ecx
mov esi, eax
mov dword [ebx + 0x78], edx
mov ecx, eax
shr esi, 5
mov esi, dword [ebx + esi*4 + 0x1374]
and ecx, 0x1f
shr esi, cl
and esi, 1
mov dword [ebx + 0xac], esi
movzx ecx, byte [edx]
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + ecx*4]
mov dword [ebx + 0x100], ecx
mov ecx, dword [ebx + 0x1370]
movzx eax, byte [eax + ecx]
shl eax, 2
mov edx, dword [eax + 0x160df8]
mov ecx, 0x1606f8
add edx, ecx
mov dword [ebx + 0x70], edx
mov eax, dword [eax + 0x160dfc]
add eax, ecx
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x8c]
mov eax, dword [eax]
mov esi, ebx
mov dword [ebx + 0x6c], eax
call fcn.000368d7
test eax, eax
jne 0x39689
mov dword [ebp - 4], 0xffffffe5
jmp case.default.0x38fc5
mov dword [ebx], 5
jmp case.default.0x38fc5
push ebx
call fcn.00036b57
mov dword [ebp - 4], eax
cmp eax, 2
jne case.default.0x38fc5
push ebx
call fcn.000376d5
mov dword [ebp - 4], eax
jmp case.default.0x38fc5
push 0
push dword [ebp + 0x1c]
mov eax, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.000367c7
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov eax, ebx
call fcn.000368ae
mov ecx, dword [ebx + 0x1360]
xor eax, eax
inc eax
shl eax, cl
cmp dword [ebx + 0x40], eax
jne 0x396ef
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx]
cmp eax, 0xd
jne 0x3970d
mov eax, dword [ebx + 0xb4]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0xc
mov dword [ebx], eax
jmp case.default.0x38fc5
cmp eax, 0xe
jne 0x3971d
mov dword [ebx], 8
jmp case.default.0x38fc5
cmp dword [ebx + 4], 0
jne 0x39732
mov eax, dword [ebx + 0xb4]
neg eax
sbb eax, eax
and eax, 0xfffffffb
jmp 0x39703
mov dword [ebx], 6
jmp case.default.0x38fc5
xor edi, edi
cmp dword [ebx + 0xb4], edi
jge 0x39753
mov dword [ebp - 4], 0xfffffff6
jmp case.default.0x38fc5
push ebx
call fcn.00038e38
test byte [ebx + 0x135c], 1
jne 0x3976d
mov dword [ebx], 1
jmp case.default.0x38fc5
mov ecx, dword [ebx + 0xc]
mov eax, ecx
neg eax
and eax, 7
je 0x3979b
mov edx, dword [ebx + 8]
mov esi, dword [eax*4 + 0x160670]
shr edx, cl
lea eax, [eax + ecx]
mov dword [ebx + 0xc], eax
and esi, edx
je 0x3979b
mov dword [ebp - 4], 0xfffffff1
jmp case.default.0x38fc5
cmp dword [ebx + 0x30], edi
jne 0x397d8
mov edx, dword [ebx + 0xc]
push 0x20
pop eax
sub eax, edx
shr eax, 3
add dword [ebx + 0x14], eax
sub dword [ebx + 0x10], eax
mov esi, dword [ebx + 0x14]
mov ecx, eax
shl ecx, 3
cmp ecx, 0x20
jne 0x397c3
mov dword [ebx + 8], edi
jmp 0x397c6
shl dword [ebx + 8], cl
mov eax, dword [ebp + 0xc]
add ecx, edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov dword [ecx], eax
mov dword [ebx], 0x16
cmp dword [ebx + 0x64], 0
je 0x39802
push 1
push dword [ebp + 0x1c]
mov eax, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.000367c7
mov dword [ebp - 4], eax
cmp eax, 1
jne case.default.0x38fc5
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.000349ef
pop edi
pop esi
pop ebx
leave
ret 0x18
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi], ecx
test ecx, ecx
je 0x39802
mov ecx, dword [eax]
mov edx, dword [ebx + 0x30]
mov cl, byte [ecx]
mov byte [edx + ebx + 0x28], cl
inc dword [ebx + 0x30]
inc dword [eax]
dec dword [esi]
cmp dword [esi], 0
jne 0x39827
jmp 0x39802
xor edi, edi
cmp dword [ebx + 0x30], edi
je 0x3984c
mov dword [ebx + 0x30], edi
jmp 0x39802
mov edx, dword [ebx + 0xc]
push 0x20
pop eax
sub eax, edx
shr eax, 3
add dword [ebx + 0x14], eax
sub dword [ebx + 0x10], eax
mov esi, dword [ebx + 0x14]
mov ecx, eax
shl ecx, 3
cmp ecx, 0x20
jne 0x3986f
mov dword [ebx + 8], edi
jmp 0x39872
shl dword [ebx + 8], cl
mov eax, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0xc], edx
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov dword [ecx], eax
jmp 0x39802
mov dword [ebx + 0x5c], 0xffffffea
jmp 0x39899
mov dword [ebx + 0x5c], 0xffffffe1
xor eax, eax
jmp 0x3980c