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

Disassembly:
push 0xffffffffffffffff
push 0x101e5ab3
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1027e110]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x4c], 0
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
test esi, esi
je 0x100381bd
lea eax, [ecx + esi*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x1003821d
dec esi
sub eax, 4
test esi, esi
jne 0x100381b0
xor edi, edi
mov eax, dword [esp + 0x9c]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edi
test esi, esi
je 0x100381e5
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x10038234
dec esi
sub eax, 4
test esi, esi
jne 0x100381d8
xor eax, eax
mov dword [esp + 0x3c], eax
cmp eax, edi
lea eax, [esp + 0x40]
jb 0x100381f7
lea eax, [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x10038249
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov esi, dword [esp + 0x94]
push eax
call fcn.1002d290
jmp 0x10038a09
test esi, esi
je 0x100381bd
lea eax, [ecx + esi*4 - 4]
call fcn.10022a70
dec esi
mov edi, eax
shl esi, 5
add edi, esi
jmp 0x100381bf
test esi, esi
je 0x100381e5
lea eax, [ecx + esi*4 - 4]
call fcn.10022a70
dec esi
shl esi, 5
add eax, esi
jmp 0x100381e7
cmp eax, 0x2e
ja 0x10038255
mov esi, 1
jmp 0x10038263
mov ecx, 0x104
cmp ecx, eax
sbb esi, esi
neg esi
add esi, 2
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea edx, [esp + 0x50]
mov dword [esp + 0x3c], esi
mov eax, ebx
shl eax, cl
mov dword [esp + 0x24], ebx
push eax
push edx
mov dword [esp + 0x24], eax
call fcn.100396c0
mov dword [esp + 0x8c], 1
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x100382b5
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x98]
add ecx, 0x18
push ecx
call fcn.1002d540
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100382eb
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0xa0]
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
add eax, ecx
push eax
call fcn.1002d540
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 1
jne 0x1003835c
cmp eax, 3
ja 0x10038333
call fcn.101b461a
mov ecx, dword [esp + 0x98]
mov edx, dword [ebp]
mov esi, dword [esp + 0x5c]
mov edx, dword [edx + 0xc]
mov eax, edi
push eax
push ecx
mov ecx, ebp
add esi, 0x48
call edx
push esi
mov edi, eax
call fcn.1002d540
jmp 0x100387e9
cmp eax, 2
ja 0x10038366
call fcn.101b461a
mov edx, dword [ebp]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x5c]
mov edx, dword [edx + 0x18]
push eax
mov ecx, ebp
add esi, 0x30
call edx
push esi
mov edi, eax
call fcn.1002d540
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea edi, [ebx + ebx]
add eax, edx
cmp edi, eax
jb 0x100383ac
call fcn.101b461a
mov edx, dword [esp + 0x5c]
mov eax, dword [ebp]
lea ecx, [edi + edi*2]
lea esi, [edx + ecx*8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, ebp
call edx
push esi
mov edi, eax
call fcn.1002d540
mov esi, 3
cmp ebx, esi
jbe 0x100384a3
mov dword [esp + 0x18], 0x48
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, edi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x10038414
call fcn.101b461a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea edx, [ecx + 0x30]
mov dword [esp + 0x38], edx
mov edx, edi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esi - 2]
cmp edx, eax
jb 0x10038444
call fcn.101b461a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx - 0x30]
sub edi, ecx
mov dword [esp + 0x34], edx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x10038470
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call eax
push edi
mov edi, eax
call fcn.1002d540
add dword [esp + 0x18], 0x30
add esi, 2
cmp esi, ebx
jb 0x100383e5
mov dword [esp + 0x18], 1
cmp ebx, 1
jbe 0x100385bc
mov ecx, dword [esp + 0x40]
add ecx, 0x18
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0x18
jmp 0x100384d0
mov edx, dword [esp + 0x18]
lea esi, [edx + ebx]
cmp esi, dword [esp + 0x1c]
jae 0x1003859c
mov eax, dword [esp + 0x34]
mov ecx, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
jmp 0x10038500
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, edi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x10038530
call fcn.101b461a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
add edx, ecx
sub edi, ecx
mov dword [esp + 0x44], edx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1003855a
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x44]
push ecx
push edx
mov ecx, ebp
call eax
push edi
mov edi, eax
call fcn.1002d540
mov eax, dword [esp + 0x40]
add dword [esp + 0x28], ebx
add dword [esp + 0x2c], eax
add dword [esp + 0x30], eax
add esi, ebx
cmp esi, dword [esp + 0x1c]
jb 0x10038500
mov eax, dword [esp + 0x18]
mov ecx, 0x30
add dword [esp + 0x34], ecx
add dword [esp + 0x38], ecx
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x100384d0
lea eax, [ebx + ebx*2]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jae 0x100386d6
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
lea esi, [ebx + ebx]
sub eax, esi
mov dword [esp + 0xa0], eax
add ecx, ecx
lea eax, [eax + eax*2]
mov dword [esp + 0x38], ecx
add eax, eax
lea ecx, [ebx + ebx*2]
shl ecx, 4
add eax, eax
add eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, edi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1003862b
call fcn.101b461a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
lea edx, [esi + esi*2]
lea eax, [ecx + edx*8]
mov dword [esp + 0x44], eax
mov edx, edi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xa0], eax
jb 0x10038660
call fcn.101b461a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
add edx, ecx
sub edi, ecx
mov dword [esp + 0x40], edx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x1003868c
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, ebp
call eax
push edi
mov edi, eax
call fcn.1002d540
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
add dword [esp + 0xa0], esi
add dword [esp + 0x38], ecx
add dword [esp + 0x34], ecx
add eax, esi
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x100385fd
cmp ebx, dword [esp + 0x1c]
jae 0x100387e9
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 2]
mov dword [esp + 0xa0], eax
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x34], eax
lea eax, [ecx + ecx]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
jmp 0x10038710
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebp - 2]
mov dword [esp + 0x44], eax
cmp ebp, eax
jae 0x100387be
mov ebx, dword [esp + 0x34]
mov edx, ebp
dec edx
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x38], eax
jb 0x10038766
call fcn.101b461a
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [ebx + ecx - 0x18]
cmp ebp, eax
jb 0x1003878a
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x98]
lea esi, [ebx + ecx]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push edi
call edx
push esi
mov edi, eax
call fcn.1002d540
add dword [esp + 0x38], 2
add ebp, 2
add ebx, 0x30
cmp ebp, dword [esp + 0x44]
jb 0x10038736
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xa0]
add ecx, ecx
add eax, ecx
mov ecx, dword [esp + 0x40]
add dword [esp + 0x34], ecx
mov dword [esp + 0xa0], eax
add eax, 0xfffffffe
cmp eax, dword [esp + 0x1c]
jb 0x10038710
lea ecx, [esp + 0x68]
call fcn.1002d1b0
mov eax, dword [esp + 0x48]
lea ecx, [eax - 1]
xor edx, edx
xor ebx, ebx
add eax, 0xffffffff
mov byte [esp + 0x8c], 2
mov dword [esp + 0x40], ecx
mov byte [esp + 0xa0], 1
mov dword [esp + 0x38], eax
js 0x10038972
mov ebp, dword [esp + 0xa4]
mov edi, eax
jmp 0x10038837
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0xc]
mov esi, edi
shr esi, 5
cmp esi, eax
jae 0x10038862
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and al, 1
jmp 0x10038864
xor al, al
movzx eax, al
lea edx, [eax + edx*2]
mov dword [esp + 0x98], edx
cmp esi, dword [ebp + 0xc]
jae 0x10038887
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and al, 1
jmp 0x10038889
xor al, al
movzx ecx, al
lea ebx, [ecx + ebx*2]
test edi, edi
je 0x100388a9
mov eax, dword [esp + 0x24]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x100388a9
lea ecx, [ebx + ebx]
cmp ecx, eax
jb 0x10038965
mov esi, dword [esp + 0x40]
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x40], edi
test edx, edx
jne 0x100388bd
test ebx, ebx
je 0x100388cf
test dl, 1
jne 0x100388cf
test bl, 1
jne 0x100388cf
shr edx, 1
shr ebx, 1
dec esi
inc ebp
jmp 0x100388b5
cmp byte [esp + 0xa0], 0
mov dword [esp + 0x98], edx
je 0x10038a24
mov ecx, dword [esp + 0x3c]
shl ebx, cl
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
add ebx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1003890e
call fcn.101b461a
mov edx, dword [esp + 0x5c]
lea ecx, [ebx + ebx*2]
lea eax, [esp + 0x68]
lea edi, [edx + ecx*8]
push eax
call fcn.1002d540
mov byte [esp + 0xa0], 0
mov esi, dword [esp + 0x20]
test ebp, ebp
je 0x10038951
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
dec ebp
call edx
lea ecx, [esp + 0x68]
push ecx
mov edi, eax
call fcn.1002d540
test ebp, ebp
jne 0x10038932
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x98], ebx
sub edi, 1
mov dword [esp + 0x38], edi
jns 0x10038830
mov esi, dword [esp + 0x94]
lea edx, [esp + 0x68]
push edx
call fcn.1002d290
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x4c], 1
lea eax, [esp + 0x70]
jb 0x1003899d
lea eax, [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ecx, dword [eax]
xor ebp, ebp
mov edx, edi
cmp edi, ebp
je 0x100389b8
xor eax, eax
push edx
rep stosd dword es:[edi], eax
call fcn.101bc570
add esp, 4
mov dword [esp + 0x8c], 3
mov edi, dword [esp + 0x5c]
cmp edi, ebp
je 0x100389f0
mov ebx, dword [esp + 0x60]
cmp edi, ebx
je 0x100389e7
mov edx, dword [edi]
mov eax, dword [edx]
push ebp
mov ecx, edi
call eax
add edi, 0x18
cmp edi, ebx
jne 0x100389d3
mov edi, dword [esp + 0x5c]
push edi
call fcn.101b4654
add esp, 4
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call fcn.101b4654
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x14
test esi, esi
je 0x10038a58
jmp 0x10038a30
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x68]
push eax
dec esi
call edx
lea ecx, [esp + 0x68]
push ecx
mov edi, eax
call fcn.1002d540
test esi, esi
jne 0x10038a30
mov edx, dword [esp + 0x98]
test edx, edx
jne 0x10038a64
test ebx, ebx
je 0x1003892a
mov ecx, dword [esp + 0x3c]
shl ebx, cl
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
add ebx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10038a8e
call fcn.101b461a
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call edx
jmp 0x1003892e