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

Disassembly:
mov eax, 0x1009fc95
call fcn.1009a9e0
sub esp, 0xd4
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov esi, dword [ebp + 0x10]
cmp eax, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jne 0x1003922b
xor ebx, ebx
cmp edx, ebx
jne 0x1003922d
lea eax, [esi + 0x130]
mov ecx, edi
push eax
call fcn.100383fa
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x1003922d
xor ebx, ebx
lea ecx, [ebp - 0x38]
call fcn.10003159
mov dword [ebp - 0x38], 0x100a6c98
cmp dword [ebp - 0x14], 3
mov dword [ebp - 4], ebx
jne 0x100392ae
cmp dword [ebp - 0x10], ebx
jne 0x100392ae
push dword [ebp + 0x18]
lea eax, [ebp - 0x38]
lea ebx, [esi + 0x150]
mov ecx, edi
push dword [ebp + 0x14]
push eax
push ebx
push dword [esi + 0x144]
push dword [esi + 0x140]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10038e40
test eax, eax
je 0x1003928d
mov dword [ebp - 0x38], 0x100a6c98
mov dword [ebp - 4], 1
mov ebx, eax
jmp 0x100393ff
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x144]
add dword [ebx], eax
adc dword [ebx + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
xor ebx, ebx
push 8
lea ecx, [ebp - 0xac]
call fcn.1000357a
mov dword [ebp - 0xac], 0x100a6690
push 1
lea ecx, [ebp - 0xc0]
call fcn.1000357a
mov dword [ebp - 0xc0], 0x100a68e4
push 4
lea ecx, [ebp - 0x88]
call fcn.1000357a
mov dword [ebp - 0x88], 0x100a59c0
cmp dword [ebp - 0x14], 4
mov byte [ebp - 4], 4
jne 0x1003935b
cmp dword [ebp - 0x10], ebx
jne 0x1003935b
lea eax, [ebp - 0x88]
lea ebx, [esi + 0x148]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x14]
push eax
push esi
lea eax, [ebp - 0x38]
push ebx
push eax
mov ecx, edi
call fcn.10038ca0
mov eax, dword [esi + 0x140]
mov ecx, dword [esi + 0x144]
add dword [ebx], eax
adc dword [ebx + 4], ecx
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x100393b2
cmp dword [esi + 0x44], ebx
mov dword [ebp + 0x10], ebx
jle 0x100393b4
push 1
lea ecx, [esi + 0x50]
call fcn.10013734
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4]
mov ecx, ebx
call fcn.10034436
push edx
push eax
lea ecx, [ebp - 0xac]
call fcn.1004173e
mov al, byte [ebx + 0x54]
lea ecx, [ebp - 0xc0]
push eax
call fcn.1005f272
push dword [ebx + 0x50]
lea ecx, [ebp - 0x88]
call fcn.10013734
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x44]
jl 0x10039363
xor ebx, ebx
lea ecx, [esi + 0x64]
call fcn.10001866
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
jne 0x1003941a
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.10001821
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.10001821
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.10001821
mov dword [ebp - 0x38], 0x100a6c98
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.10001866
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10001821
mov eax, ebx
jmp 0x100398ab
cmp dword [ebp - 0x14], 5
jne 0x10039425
cmp dword [ebp - 0x10], ebx
je 0x1003942a
call fcn.10037f1b
mov ecx, dword [edi + 0x18]
call fcn.10038064
push eax
lea ecx, [esi + 0x64]
mov dword [ebp + 0x10], eax
call fcn.100018b7
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x10039475
mov dword [ebp + 0x18], eax
lea ecx, [ebp - 0xe0]
call fcn.100398ec
push eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 6
call fcn.10039ee6
push dword [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.10002896
dec dword [ebp + 0x18]
pop ecx
jne 0x10039448
push ebx
lea ecx, [esi + 0x158]
push 9
call fcn.1004173e
cmp dword [esi + 8], ebx
je 0x10039496
push ebx
push 6
lea ecx, [esi + 0x158]
call fcn.1004173e
cmp dword [ebp + 0x10], ebx
jbe 0x100394ae
cmp dword [ebp - 0x80], ebx
je 0x100394ae
push ebx
push 0xa
lea ecx, [esi + 0x158]
call fcn.1004173e
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x4c], 0x100a68e4
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.10037dcd
push 1
mov eax, 0x100a68e4
pop ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 9
mov dword [ebp + 0x18], ebx
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov dword [ebp - 0x24], eax
or eax, edx
mov dword [ebp - 0x20], edx
je 0x10039773
mov ecx, dword [edi + 0x18]
call fcn.10037fc8
mov ecx, dword [edi + 0x18]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + 8]
mov dword [ebp + 0xc], eax
ja case.0x10039555.22
jb 0x10039546
cmp dword [ebp - 0x24], 0x40000000
ja case.0x10039555.22
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x10039555.22
jmp dword [eax*4 + 0x100398bc]
and byte [ebp - 0x94], 0
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x98]
push eax
push edi
mov byte [ebp - 4], 0xa
call fcn.10037ecc
cmp dword [esi + 0x6c], 0
jle 0x10039595
mov eax, dword [esi + 0x70]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + ebx*4]
add eax, 0x10
push eax
call fcn.100380cb
inc ebx
cmp ebx, dword [esi + 0x6c]
jl 0x1003957d
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call fcn.10037e08
jmp 0x10039651
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xd4], 0x100a68e4
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0xd4]
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.10038d71
and byte [ebp - 0x8c], 0
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x90]
push eax
push edi
mov byte [ebp - 4], 0xc
call fcn.10037ecc
cmp dword [ebp + 0x10], 0
jbe 0x10039633
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp - 0xc8]
mov dword [ebp + 0x14], ecx
mov al, byte [eax + ebx]
test al, al
mov byte [ecx + 0x1f], al
je 0x1003962d
mov ecx, dword [edi + 0x18]
call fcn.10038081
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x10039606
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xb
call fcn.10037e08
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.10001821
xor ebx, ebx
push dword [ebp - 0x20]
lea ecx, [esi + 0x158]
push dword [ebp - 0x24]
call fcn.1004173e
jmp 0x1003973c
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.10038d1d
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp eax, ebx
jbe 0x10039691
mov edx, dword [ebp - 0x40]
cmp byte [edx + ecx], 0
je 0x1003968c
inc dword [ebp + 0x18]
inc ecx
cmp ecx, eax
jb 0x10039680
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x74]
call fcn.10037dcd
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x60]
call fcn.10037dcd
jmp 0x10039653
lea eax, [ebp - 0x74]
jmp 0x100396b1
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
push dword [ebp + 0x18]
call fcn.10038d1d
jmp 0x10039653
push dword [ebp + 0x10]
lea eax, [esi + 0xf0]
jmp 0x100396e5
push dword [ebp + 0x10]
lea eax, [esi + 0x78]
jmp 0x100396e5
push dword [ebp + 0x10]
lea eax, [esi + 0xa0]
jmp 0x100396e5
push dword [ebp + 0x10]
lea eax, [esi + 0xc8]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.10038dbc
jmp 0x10039653
cmp edx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jb 0x1003973c
ja 0x10039707
cmp dword [ebp - 0x1c], ebx
jbe 0x1003973c
mov ecx, dword [edi + 0x18]
call fcn.10037f33
test al, al
je 0x10039718
call fcn.10037f1b
add dword [ebp - 0x14], 1
adc dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x10039707
ja 0x1003973c
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jb 0x10039707
jmp 0x1003973c
push edx
push dword [ebp - 0x1c]
call fcn.10037f8a
cmp byte [esi + 0x130], 0
ja 0x10039752
cmp byte [esi + 0x131], 2
jbe 0x10039501
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 8]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
jne 0x10039769
cmp ebx, dword [ebp - 0x18]
je 0x10039501
call fcn.10037f1b
jmp 0x10039501
xor eax, eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], ebx
jbe 0x10039795
mov ecx, dword [ebp - 0x54]
cmp byte [ecx + eax], 0
je 0x1003978f
inc dword [ebp + 0xc]
inc eax
cmp eax, dword [ebp + 0x18]
jb 0x10039783
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x10039836
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 0x70]
cmp byte [ecx + edi], 0
mov eax, dword [eax + edi*4]
sete cl
test cl, cl
mov byte [eax + 0x1c], cl
je 0x100397f3
and byte [eax + 0x1d], 0
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp + 0x14]
and byte [ebp + 0x18], 0
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0xb4]
mov dl, byte [edx + ecx]
inc ecx
mov byte [eax + 0x1e], dl
mov dword [ebp + 0x14], ecx
jmp 0x10039819
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp + 8]
cmp byte [edx + ecx], 0
sete dl
mov byte [eax + 0x1d], dl
mov edx, dword [ebp - 0x54]
mov dl, byte [edx + ecx]
inc ecx
and byte [eax + 0x1e], 0
mov dword [eax], ebx
mov byte [ebp + 0x18], dl
mov dword [ebp + 8], ecx
mov dword [eax + 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x1003982c
push dword [ebp + 0x18]
lea ecx, [esi + 0x118]
call fcn.1005f272
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x100397a0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.10001821
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.10001821
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.10001821
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.10001821
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.10001821
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.10001821
mov dword [ebp - 0x38], 0x100a6c98
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xd
call fcn.10001866
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10001821
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14