Function at 0x10039c61
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007141b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x258
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 0x18], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003acf7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x13c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
movzx eax, byte [eax]
test eax, eax
je 0x1003ac92
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10039cfb
jmp 0x1003ad24
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0x4550
je 0x10039d1a
jmp 0x1003ad24
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax + 0x78]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jne 0x10039d38
jmp 0x1003ad24
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x48]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x48]
push eax
push 0x1e2c
push 0x23e4
push 0x41ad
push 0
push 0xa77
push 0x4555
push 0x7d14
push 0x4201
push 0x5c
lea eax, [ebp - 0x28]
push eax
push 0x347f
push 1
push 1
lea eax, [ebp - 0xd0]
push eax
push 0x26a7
lea eax, [ebp - 0x34]
push eax
call fcn.100383c2
add esp, 0x44
cmp dword [ebp - 0x28], 0
jne 0x10039dab
jmp 0x1003ad24
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
call fcn.10036741
push eax
call fcn.10058c2f
pop ecx
mov byte [ebp - 0x84], 8
mov byte [ebp - 0x83], 0x49
mov byte [ebp - 0x82], 0
mov byte [ebp - 0x81], 1
mov byte [ebp - 0x80], 5
mov byte [ebp - 0x7f], 0
mov byte [ebp - 0x7e], 3
mov byte [ebp - 0x7d], 6
mov byte [ebp - 0x7c], 6
mov byte [ebp - 0x7b], 6
mov byte [ebp - 0x7a], 9
mov byte [ebp - 0x79], 1
mov byte [ebp - 0x78], 4
mov byte [ebp - 0x77], 8
mov byte [ebp - 0x76], 2
mov byte [ebp - 0x75], 0xf
mov byte [ebp - 0x74], 1
mov byte [ebp - 0x73], 2
mov byte [ebp - 0x72], 3
mov byte [ebp - 0x71], 0xc2
mov byte [ebp - 0x70], 0x83
mov byte [ebp - 0x6f], 0xbb
mov byte [ebp - 0x6e], 7
mov byte [ebp - 0x6d], 3
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x84]
or eax, 0x79
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x84]
and ecx, 0x79
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x84]
mov byte [ebp + ecx - 0xf8], al
mov dword [ebp - 0x2c], 2
and dword [ebp - 0x9c], 0
jmp 0x10039e84
mov eax, dword [ebp - 0x2c]
inc eax
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x18
jae 0x10039f8e
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x84]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x2c], eax
jne 0x10039ece
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x84]
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x84]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x2c], eax
jmp 0x10039e7c
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x83]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x9c]
movzx ecx, byte [ebp + ecx - 0x86]
movsx ecx, byte [ebp + ecx - 0xf8]
or eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ebp + ecx - 0x83]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x9c]
movzx edx, byte [ebp + edx - 0x86]
movsx edx, byte [ebp + edx - 0xf8]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ebp + ecx - 0x84]
mov byte [ebp + ecx - 0xf8], al
push 0x35a6
push 0x6fd3
push 0x51db
push 0x178a
push 0
push 0x5af
push 0x5647
push 0x154e
lea eax, [ebp - 0x9c]
push eax
push 0x4e6f
push 0x5810
push 0x201a
push 0x3290
push 0x495e
push 0x4807
push 1
push 0x362f
push 1
call fcn.100387fa
add esp, 0x48
jmp 0x10039e7c
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0xf8], 0
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x220]
call fcn.1003aedf
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x138], eax
and dword [ebp - 4], 0
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x138]
call fcn.10036706
pop ecx
mov dword [ebp - 0x178], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.100178c9
and dword [ebp - 0xa8], 0
jmp 0x10039fff
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0xb
jae 0x1003a018
mov eax, dword [ebp - 0xa8]
mov byte [ebp + eax - 0xf8], 0
jmp 0x10039ff2
mov byte [ebp - 0x60], 2
mov byte [ebp - 0x5f], 0x61
mov byte [ebp - 0x5e], 1
mov byte [ebp - 0x5d], 1
mov byte [ebp - 0x5c], 6
mov byte [ebp - 0x5b], 0xf
mov byte [ebp - 0x5a], 2
mov byte [ebp - 0x59], 0x49
mov byte [ebp - 0x58], 0x5a
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 8
mov byte [ebp - 0x55], 8
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], 4
mov byte [ebp - 0x52], 4
mov byte [ebp - 0x51], 7
mov byte [ebp - 0x50], 2
mov byte [ebp - 0x4f], 9
mov byte [ebp - 0x4e], 6
mov byte [ebp - 0x4d], 5
mov byte [ebp - 0x4c], 1
mov byte [ebp - 0x4b], 3
mov byte [ebp - 0x4a], 3
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x60]
or eax, 0x56
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x60]
and ecx, 0x56
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x60]
mov byte [ebp + ecx - 0xec], al
mov dword [ebp - 0x20], 2
and dword [ebp - 0x6c], 0
jmp 0x1003a0b9
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x17
jae 0x1003a2bf
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x60]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x20], eax
jne 0x1003a20e
mov dword [ebp - 0xc0], 0xeb6
mov dword [ebp - 0xfc], 0x10008950
cmp dword [ebp - 0xc0], 0xf7f
jle 0x1003a1a6
and dword [ebp - 0xb0], 0
jmp 0x1003a115
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x2787
jge 0x1003a1a6
and dword [ebp - 0xa4], 0
jmp 0x1003a13b
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x46ea
jge 0x1003a1a1
mov eax, dword [ebp - 0xb0]
cdq
idiv dword [ebp - 0xa4]
mov eax, edx
cdq
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edx
push dword [ebp - 0x124]
push dword [ebp - 0x128]
lea ecx, [ebp - 0x250]
call fcn.1000a64e
pop ecx
pop ecx
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
call fcn.10017622
push eax
call fcn.10058109
pop ecx
lea ecx, [ebp - 0x250]
call fcn.10017618
jmp 0x1003a12e
jmp 0x1003a108
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x60]
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc0], 0xafb
jge 0x1003a1d1
push dword [ebp - 0xfc]
call fcn.10058109
pop ecx
jmp 0x1003a1ed
or dword [ebp - 4], 0xffffffff
jmp 0x1003a1f7
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x60]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x20], eax
jmp 0x1003a0b1
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x5f]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x6c]
movzx ecx, byte [ebp + ecx - 0x62]
movsx ecx, byte [ebp + ecx - 0xec]
add eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x5f]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x6c]
movzx edx, byte [ebp + edx - 0x62]
movsx edx, byte [ebp + edx - 0xec]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x5f]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x6c]
movzx edx, byte [ebp + edx - 0x62]
movsx edx, byte [ebp + edx - 0xec]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x60]
mov byte [ebp + ecx - 0xec], al
push 0x673f
lea eax, [ebp - 0x6c]
push eax
push 0x7f81
push 0x44d1
push 0x7fb0
push 0x1036
push 0x78cc
push 0x781b
push 0x6389
push 0
push 1
push 0x224e
push 0x52db
call fcn.100399a7
add esp, 0x34
jmp 0x1003a0b1
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0xec], 0
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.1003aedf
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov dword [ebp - 4], 3
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x154]
call fcn.10036706
pop ecx
mov dword [ebp - 0x108], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d8]
call fcn.100178c9
and dword [ebp - 0x98], 0
jmp 0x1003a333
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xb
jae 0x1003a34c
mov eax, dword [ebp - 0x98]
mov byte [ebp + eax - 0xec], 0
jmp 0x1003a326
push dword [ebp - 0x108]
push dword [ebp - 0x178]
call fcn.10037e98
pop ecx
pop ecx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc8]
mov dword [eax + 8], ecx
push 0xf
push 5
call fcn.10037e98
pop ecx
pop ecx
add eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0x1005
lea eax, [ebp - 0x68]
push eax
push 1
push 0x4b89
call fcn.1003872b
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
and dword [ebp - 0xa0], 0
jmp 0x1003a3d5
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x44]
jge 0x1003a472
lea eax, [ebp - 0xd0]
push eax
push 0x4ff3
push 0x1f2f
push 0x262b
push 1
push 0x4e27
push 0x3f28
lea eax, [ebp - 0x28]
push eax
push 0x3644
lea eax, [ebp - 0xa0]
push eax
push 0x48af
push 0xf90
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x79fb
push 1
call fcn.100387fa
add esp, 0x48
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 1
lea eax, [ebp - 0x110]
push eax
push 0x62e0
call fcn.10038e12
add esp, 0x1c
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x1003a3c8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x44]
push eax
push 0x7771
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4e1b
push 0x7b35
lea eax, [ebp - 0x68]
push eax
push 1
call fcn.10039c61
add esp, 0x20
and dword [ebp - 0xb4], 0
jmp 0x1003a4be
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0x44]
jge 0x1003a52f
push 0x7d64
push 0x5a13
push 0x1af5
push 0x5135
push 0x7269
lea eax, [ebp - 0x28]
push eax
push 0x7bf4
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.1003804e
add esp, 0x2c
push 1
push 1
lea eax, [ebp - 0x1c]
push eax
push 0x4f96
push 0x5a19
push 0x2188
push 0x4691
push 0x413
push 0xe3c
call fcn.10038ae9
add esp, 0x24
jmp 0x1003a4b1
lea eax, [ebp - 0x14]
push eax
push 0x78a1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x5e66
push 0
push 0x49e3
push 0x4b58
push 0x261e
push 0x75dc
push 0
call fcn.1003989e
add esp, 0x2c
push 0
push 0x64ed
push 0x1c7f
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x561
call fcn.10039b0f
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x49ed
push 0x638b
push 0x349d
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x6158
push 0xdf3
push 0x1487
lea eax, [ebp - 0x28]
push eax
push 0x54d9
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.10038bba
add esp, 0x38
push 1
push 0
push 0x2ecf
push 1
push 0x5a6a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x43d
push 0x7b79
lea eax, [ebp - 0x14]
push eax
push 0x15b3
call fcn.100393f5
add esp, 0x2c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.1003aedf
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call fcn.1001942d
mov dword [ebp - 0xbc], eax
push dword [ebp - 0xbc]
mov eax, dword [ebp - 0xbc]
shr eax, 1
push eax
call fcn.10037e98
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0x94
mov byte [ebp - 0x3e], 1
mov byte [ebp - 0x3d], 0x2e
mov byte [ebp - 0x3c], 2
mov byte [ebp - 0x3b], 0x42
mov byte [ebp - 0x3a], 3
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x38], 1
mov byte [ebp - 0x37], 8
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x40]
or eax, 0xba
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x40]
and ecx, 0xba
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x40]
mov byte [ebp + ecx - 0x8c], al
mov dword [ebp - 0x30], 2
and dword [ebp - 0x90], 0
jmp 0x1003a6bc
mov eax, dword [ebp - 0x30]
inc eax
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xa
jae 0x1003a77a
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x40]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x30], eax
jne 0x1003a6fd
mov eax, dword [ebp - 0x30]
movzx eax, byte [ebp + eax - 0x40]
inc eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [ebp + eax - 0x40]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x30], eax
jmp 0x1003a6b4
mov eax, dword [ebp - 0x30]
movzx eax, byte [ebp + eax - 0x3f]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x90]
movzx ecx, byte [ebp + ecx - 0x42]
movsx ecx, byte [ebp + ecx - 0x8c]
or eax, ecx
mov ecx, dword [ebp - 0x30]
movzx ecx, byte [ebp + ecx - 0x3f]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x90]
movzx edx, byte [ebp + edx - 0x42]
movsx edx, byte [ebp + edx - 0x8c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x30]
movzx ecx, byte [ebp + ecx - 0x40]
mov byte [ebp + ecx - 0x8c], al
push 0
lea eax, [ebp - 0x90]
push eax
push 0x24d1
push 1
push 0x50ac
push 0x4268
push 0x86e
call fcn.10039b0f
add esp, 0x1c
jmp 0x1003a6b4
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x8c], 0
cmp dword [ebp - 0x64], 4
jle 0x1003a842
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x268]
call fcn.1003aedf
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
sub eax, 4
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10037ecd
pop ecx
pop ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
push dword [ebp - 0x16c]
mov edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x208]
call fcn.1003b48c
pop ecx
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x18]
or eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc4], eax
jmp 0x1003a86e
push dword [ebp - 0x64]
lea eax, [ebp - 0x1f0]
push eax
call fcn.10037ecd
pop ecx
pop ecx
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x18]
or eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x134], eax
push dword [ebp - 0x134]
lea ecx, [ebp - 0x1a8]
call fcn.1003af02
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
and eax, 8
je 0x1003a8a9
and dword [ebp - 0x18], 0xfffffff7
lea ecx, [ebp - 0x1f0]
call fcn.100178c9
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
and eax, 4
je 0x1003a8c4
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0x208]
call fcn.100178c9
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
and eax, 2
je 0x1003a8df
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x238]
call fcn.100178c9
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
and eax, 1
je 0x1003a8fa
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x268]
call fcn.100178c9
and dword [ebp - 0xac], 0
jmp 0x1003a910
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 5
jae 0x1003a929
mov eax, dword [ebp - 0xac]
mov byte [ebp + eax - 0x8c], 0
jmp 0x1003a903
push 0x62f1
lea eax, [ebp - 0x14]
push eax
push 0x4f1f
lea eax, [ebp - 0x1c]
push eax
push 0x28d0
push 1
push 1
push 0x23a8
call fcn.10038f18
add esp, 0x20
push 0x43a4
push 0x268c
lea eax, [ebp - 0x14]
push eax
push 0x1134
push 1
push 0x589a
lea eax, [ebp - 0x28]
push eax
push 0x3768
push 0x15df
push 0x6963
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0x4d49
push 0x76dd
push 0xa76
push 1
lea eax, [ebp - 0x64]
push eax
push 0
call fcn.100387fa
add esp, 0x48
push 0x1869
lea eax, [ebp - 0x1c]
push eax
push 0x5912
push 0x6433
push 0x75e0
push 0x297
push 0
push 0x5513
push 0x4369
push 0x1f6f
push 0x2d7a
lea eax, [ebp - 0x64]
push eax
push 1
push 0x38c4
call fcn.10038bba
add esp, 0x38
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [ecx + eax], 0
push 0x5232
push 0x3df4
push 0x7cc1
push 0x45cf
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x73b3
push 0x2423
push 0x3982
push 0x701a
push 1
call fcn.1003989e
add esp, 0x2c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
jbe 0x1003aa91
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
xor edx, edx
div dword [ecx + 0x18]
cmp eax, 0xc
jbe 0x1003aa65
mov dword [ebp - 0xd8], 0xc
jmp 0x1003aa83
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
xor edx, edx
div dword [ecx + 0x18]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xcc], eax
jmp 0x1003aa98
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe0], eax
and dword [ebp - 0x94], 0
jmp 0x1003aaba
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [eax + 0x18]
jae 0x1003ac09
push dword [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.10037e98
pop ecx
pop ecx
mov dword [ebp - 0xb8], eax
push dword [ebp - 0xb8]
lea eax, [ebp - 0x190]
push eax
call fcn.10037ecd
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], edx
push 0x17ff
push 0x619e
lea eax, [ebp - 0x1c]
push eax
push 0x7eee
push 1
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5615
lea eax, [ebp - 0x190]
push eax
push 0x3a8f
push 0x3677
push 1
push 0x12a5
lea eax, [ebp - 0x28]
push eax
push 0x7c48
call fcn.10039015
add esp, 0x3c
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
lea eax, [ebp - 0xb8]
push eax
push 0x1d01
push 0x23f4
call fcn.10039322
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
push 0x11f7
push 1
lea eax, [ebp - 0x24]
push eax
push 0x560a
push 0x6f30
push 1
lea eax, [ebp - 0x1c]
push eax
push 0x4a7e
push 0x5279
push 0x5d0e
call fcn.100381c3
add esp, 0x2c
push 1
push 1
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x7258
push 0x46ce
push 0x2785
push 0x56e5
push 0x743a
push 0x6d7d
push 0x3a3f
call fcn.100393f5
add esp, 0x2c
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x190]
call fcn.100178c9
jmp 0x1003aaad
and dword [ebp - 0xd4], 0
push 0x7c5a
push 0x3d2f
push 0x7328
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x54a4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1e1a
push 1
push 1
push 0x1a96
lea eax, [ebp - 0xd4]
push eax
call fcn.100399a7
add esp, 0x34
push 1
push 0x7fc0
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0x6443
call fcn.10039bc7
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a8]
call fcn.100178c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c0]
call fcn.100178c9
jmp 0x1003acf5
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x170]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x100]
mov eax, dword [eax + 0x18]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x104]
mov dword [ecx], eax
jmp 0x1003ad24
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x10c]
push dword [ebp - 0x114]
push 1
push 0x4ac7
call fcn.10039302
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret