Function at 0x100513a8
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071a3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
and dword [ebp - 0x14], 0
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10052361
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x104], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x10c]
movzx eax, byte [eax]
test eax, eax
je 0x1005230d
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10051433
jmp 0x1005238e
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0x4550
je 0x10051452
jmp 0x1005238e
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + eax + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
jne 0x10051470
jmp 0x1005238e
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x44], eax
and dword [ebp - 0xac], 0
jmp 0x100514a4
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x44]
add eax, 0x28
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xac], eax
jge 0x10051577
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xb4]
jb 0x10051572
mov eax, dword [ebp - 0x34]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x44]
push dword [eax + 8]
call fcn.1004e177
pop ecx
pop ecx
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xf0]
jae 0x10051572
push 0x5271
push 0x441d
push 0
push 0x1e8f
push 0x2540
push 1
push 0xd5e
push 0x3039
push 0x59f
push 0x2a99
push 0x1258
push 1
lea eax, [ebp - 0x44]
push eax
push 0x7b23
push 0x4b31
lea eax, [ebp - 0x24]
push eax
push 0x1848
push 0x4ee5
push 0x46e
push 0x60e7
push 0x78b3
push 0x18e2
push 0x1f00
call fcn.1004fd27
add esp, 0x5c
jmp 0x10051577
jmp 0x1005148e
cmp dword [ebp - 0x24], 0
jne 0x10051582
jmp 0x1005238e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
call fcn.1004c7df
push eax
call fcn.1005a49a
pop ecx
mov byte [ebp - 0x80], 9
mov byte [ebp - 0x7f], 0xd6
mov byte [ebp - 0x7e], 3
mov byte [ebp - 0x7d], 7
mov byte [ebp - 0x7c], 0
mov byte [ebp - 0x7b], 6
mov byte [ebp - 0x7a], 7
mov byte [ebp - 0x79], 7
mov byte [ebp - 0x78], 1
mov byte [ebp - 0x77], 3
mov byte [ebp - 0x76], 6
mov byte [ebp - 0x75], 4
mov byte [ebp - 0x74], 2
mov byte [ebp - 0x73], 6
mov byte [ebp - 0x72], 8
mov byte [ebp - 0x71], 7
mov byte [ebp - 0x70], 5
mov byte [ebp - 0x6f], 1
mov byte [ebp - 0x6e], 4
mov byte [ebp - 0x6d], 9
mov byte [ebp - 0x6c], 3
mov byte [ebp - 0x6b], 0xf2
mov byte [ebp - 0x6a], 0x8b
mov byte [ebp - 0x69], 0x1d
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x80]
or eax, 0xe6
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x80]
and ecx, 0xe6
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x80]
mov byte [ebp + ecx - 0xec], al
mov dword [ebp - 0x20], 2
and dword [ebp - 0x9c], 0
jmp 0x1005164b
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x18
jae 0x10051714
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x80]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x20], eax
jne 0x1005168c
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x80]
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x80]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x20], eax
jmp 0x10051643
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x7f]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x9c]
movzx ecx, byte [ebp + ecx - 0x82]
movsx ecx, byte [ebp + ecx - 0xec]
or eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x7f]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x9c]
movzx edx, byte [ebp + edx - 0x82]
movsx edx, byte [ebp + edx - 0xec]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x80]
mov byte [ebp + ecx - 0xec], al
push 0x796
push 1
push 0x38a8
push 0x1901
push 0x229e
push 1
lea eax, [ebp - 0x9c]
push eax
push 0x5512
call fcn.10050248
add esp, 0x20
jmp 0x10051643
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0xec], 0
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.100309a0
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
and dword [ebp - 4], 0
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x11c]
call fcn.1004c7a4
pop ecx
mov dword [ebp - 0x144], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e0]
call fcn.10018373
and dword [ebp - 0x98], 0
jmp 0x10051785
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xb
jae 0x1005179e
mov eax, dword [ebp - 0x98]
mov byte [ebp + eax - 0xec], 0
jmp 0x10051778
mov byte [ebp - 0x5c], 2
mov byte [ebp - 0x5b], 0x87
mov byte [ebp - 0x5a], 7
mov byte [ebp - 0x59], 1
mov byte [ebp - 0x58], 1
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], 0x7e
mov byte [ebp - 0x54], 4
mov byte [ebp - 0x53], 2
mov byte [ebp - 0x52], 0
mov byte [ebp - 0x51], 5
mov byte [ebp - 0x50], 5
mov byte [ebp - 0x4f], 0
mov byte [ebp - 0x4e], 9
mov byte [ebp - 0x4d], 1
mov byte [ebp - 0x4c], 8
mov byte [ebp - 0x4b], 0
mov byte [ebp - 0x4a], 6
mov byte [ebp - 0x49], 9
mov byte [ebp - 0x48], 3
mov byte [ebp - 0x47], 0xb
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x5c]
or eax, 0xb0
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x5c]
and ecx, 0xb0
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x5c]
mov byte [ebp + ecx - 0xe0], al
mov dword [ebp - 0x1c], 2
and dword [ebp - 0x68], 0
jmp 0x10051840
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x16
jae 0x100518f1
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x5c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x1c], eax
jne 0x1005187e
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x5c]
inc eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x5c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x1c], eax
jmp 0x10051838
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x5b]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x68]
movzx ecx, byte [ebp + ecx - 0x5e]
movsx ecx, byte [ebp + ecx - 0xe0]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x5b]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x68]
movzx edx, byte [ebp + edx - 0x5e]
movsx edx, byte [ebp + edx - 0xe0]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x5b]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x68]
movzx edx, byte [ebp + edx - 0x5e]
movsx edx, byte [ebp + edx - 0xe0]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x5c]
mov byte [ebp + ecx - 0xe0], al
and dword [ebp - 0x68], 0
jmp 0x10051838
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0xe0], 0
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.100309a0
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 1
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x12c]
call fcn.1004c7a4
pop ecx
mov dword [ebp - 0xf8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b0]
call fcn.10018373
and dword [ebp - 0xa0], 0
jmp 0x10051965
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xb
jae 0x1005197e
mov eax, dword [ebp - 0xa0]
mov byte [ebp + eax - 0xe0], 0
jmp 0x10051958
push dword [ebp - 0xf8]
push dword [ebp - 0x144]
call fcn.1004dfc5
pop ecx
pop ecx
mov dword [ebp - 0xbc], eax
push 1
push 0x397a
push 0xafe
lea eax, [ebp - 0x34]
push eax
push 0x1173
lea eax, [ebp - 0xbc]
push eax
push 1
push 0x7b36
call fcn.10050320
add esp, 0x20
push 1
push 0
push 0x7e0b
push 0x7452
push 0x4ef6
push 0x522
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x2198
push 1
push 0x6265
push 0x79cb
call fcn.1004e442
add esp, 0x30
and dword [ebp - 0x64], 0
push 0x16d8
push 0
lea eax, [ebp - 0x64]
push eax
push 0x1712
push 0x51b9
push 1
push 0x4cd8
lea eax, [ebp - 0x18]
push eax
call fcn.10050248
add esp, 0x20
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
push 0x6420
push 0x5839
push 0x1ba1
lea eax, [ebp - 0x44]
push eax
push 1
push 0x3b48
lea eax, [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0x4e2e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.10050b2f
add esp, 0x38
push 1
push 0x73b8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push 1
push 0x401e
push 0x146
call fcn.10050495
add esp, 0x1c
push 0x1745
push 0x1369
lea eax, [ebp - 0x40]
push eax
push 0x6279
push 1
lea eax, [ebp - 0x18]
push eax
push 0x484a
lea eax, [ebp - 0x64]
push eax
push 1
call fcn.1004e7fc
add esp, 0x24
and dword [ebp - 0xa8], 0
jmp 0x10051ae3
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0x40]
jge 0x10051b8d
push 0xc3c
push 0x5e39
push 0x6b8d
push 1
push 0xac6
push 0xb9
push 0x5e3a
push 0x3d4b
push 0x318d
push 0x8b0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x740
lea eax, [ebp - 0x24]
push eax
push 0x4832
lea eax, [ebp - 0x28]
push eax
push 0x4c11
push 0x5792
push 0x4d82
push 0x207
call fcn.1004f299
add esp, 0x50
push 0x5f62
push 1
push 0x7ed7
push 1
push 0x1f73
lea eax, [ebp - 0x10]
push eax
push 0x587d
push 0x1736
push 0x6341
push 0x7c5
call fcn.10050599
add esp, 0x28
jmp 0x10051ad6
push 0x12d5
lea eax, [ebp - 0x18]
push eax
push 0x5655
push 1
push 0x1f9f
push 0x36c1
push 0x1db3
lea eax, [ebp - 0x40]
push eax
push 0x2123
push 0x31f5
push 1
push 0x5550
push 0x3e80
push 0x1cca
push 0x4054
push 0x25e3
push 0x5252
push 0x5931
lea eax, [ebp - 0x10]
push eax
push 0x57e7
call fcn.1004f299
add esp, 0x50
push 0
push 0x27b
lea eax, [ebp - 0x18]
push eax
push 0
push 0xcf2
lea eax, [ebp - 0x64]
push eax
push 0x14ec
push 0x38ff
call fcn.1005067f
add esp, 0x20
and dword [ebp - 0x94], 0
jmp 0x10051c2e
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x40]
jge 0x10051c83
lea eax, [ebp - 0x94]
push eax
push 5
push 0x61ed
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x799c
push 0x5142
push 1
push 0x28
push 0x3220
push 0x6223
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1004f5a2
add esp, 0x38
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x10051c21
mov eax, dword [ebp - 0x40]
shl eax, 1
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x198]
call fcn.100309a0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x198]
call fcn.10018bbc
mov dword [ebp - 0xc4], eax
push dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
shr eax, 1
push eax
call fcn.1004dfc5
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x3c], 1
mov byte [ebp - 0x3b], 0xe
mov byte [ebp - 0x3a], 0
mov byte [ebp - 0x39], 0x4a
mov byte [ebp - 0x38], 2
mov byte [ebp - 0x37], 0x42
mov byte [ebp - 0x36], 3
mov byte [ebp - 0x35], 0
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x3c]
or eax, 0x6a
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x3c]
and ecx, 0x6a
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x3c]
mov byte [ebp + ecx - 0x88], al
mov dword [ebp - 0x30], 2
and dword [ebp - 0xd0], 0
jmp 0x10051d44
mov eax, dword [ebp - 0x30]
inc eax
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 8
jae 0x10051d9d
mov eax, dword [ebp - 0x30]
movzx eax, byte [ebp + eax - 0x3b]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0xd0]
movzx ecx, byte [ebp + ecx - 0x3e]
movsx ecx, byte [ebp + ecx - 0x88]
or eax, ecx
mov ecx, dword [ebp - 0x30]
movzx ecx, byte [ebp + ecx - 0x3b]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0xd0]
movzx edx, byte [ebp + edx - 0x3e]
movsx edx, byte [ebp + edx - 0x88]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x30]
movzx ecx, byte [ebp + ecx - 0x3c]
mov byte [ebp + ecx - 0x88], al
jmp 0x10051d3c
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x88], 0
cmp dword [ebp - 0x60], 4
jle 0x10051e65
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x228]
call fcn.100309a0
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
sub eax, 4
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.1004e025
pop ecx
pop ecx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x14]
or eax, 2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x108]
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x1c8]
call fcn.10052a04
pop ecx
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x134], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x14]
or eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xb0], eax
jmp 0x10051e91
push dword [ebp - 0x60]
lea eax, [ebp - 0x210]
push eax
call fcn.1004e025
pop ecx
pop ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x14]
or eax, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x138], eax
push dword [ebp - 0x138]
lea ecx, [ebp - 0x180]
call fcn.10052542
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x14]
and eax, 8
je 0x10051ecc
and dword [ebp - 0x14], 0xfffffff7
lea ecx, [ebp - 0x210]
call fcn.10018373
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
and eax, 4
je 0x10051ee7
and dword [ebp - 0x14], 0xfffffffb
lea ecx, [ebp - 0x1c8]
call fcn.10018373
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
and eax, 2
je 0x10051f02
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x1f8]
call fcn.10018373
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x10051f1d
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x228]
call fcn.10018373
and dword [ebp - 0x8c], 0
jmp 0x10051f33
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 5
jae 0x10051f4c
mov eax, dword [ebp - 0x8c]
mov byte [ebp + eax - 0x88], 0
jmp 0x10051f26
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x3d95
push 0x7140
push 1
push 0x6693
push 0x5e95
push 1
push 0x7168
push 0x6989
push 0x19ae
push 0x2b61
push 1
push 0x50e2
call fcn.10050b2f
add esp, 0x38
push 0x3def
push 0x761a
push 0x711b
lea eax, [ebp - 0x28]
push eax
push 1
push 0x30bf
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x6462
push 0
lea eax, [ebp - 0x180]
push eax
push 0x24d6
lea eax, [ebp - 0x18]
push eax
call fcn.1004fa95
add esp, 0x34
push 0
lea eax, [ebp - 0x60]
push eax
push 0x79bc
push 1
lea eax, [ebp - 0x10]
push eax
push 0x6934
push 0xdbb
push 0x18fa
call fcn.1005067f
add esp, 0x20
push 0x44bb
push 0x20ea
push 1
push 1
push 0x6f38
lea eax, [ebp - 0x24]
push eax
push 0x6342
push 0x6004
lea eax, [ebp - 0x10]
push eax
push 0xf52
push 0xb86
lea eax, [ebp - 0x28]
push eax
call fcn.10050dc3
add esp, 0x30
push 1
push 0x5103
push 0x6bdf
push 0x5bab
push 1
lea eax, [ebp - 0x10]
push eax
push 0x1790
push 0x1a04
call fcn.1004f711
add esp, 0x20
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
jbe 0x100520ba
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
xor edx, edx
div dword [ecx + 0x18]
cmp eax, 0xc
jbe 0x1005208e
mov dword [ebp - 0xcc], 0xc
jmp 0x100520ac
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
xor edx, edx
div dword [ecx + 0x18]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xc0], eax
jmp 0x100520c1
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd4], eax
and dword [ebp - 0x90], 0
jmp 0x100520e3
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [eax + 0x18]
jae 0x100522b1
push dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd4]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.1004dfc5
pop ecx
pop ecx
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xa4]
lea eax, [ebp - 0x168]
push eax
call fcn.1004e025
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
push 0x5f26
lea eax, [ebp - 0x90]
push eax
push 1
push 0x5fdd
push 0x4ac4
push 1
push 0x4225
push 0x39f8
push 0x76ef
push 0x3dc0
lea eax, [ebp - 0x28]
push eax
push 0
push 0x123b
push 0x275
lea eax, [ebp - 0x24]
push eax
push 0x27e2
push 0x638d
push 0x317f
push 0x47bc
push 0x6df9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x7cba
call fcn.1004fd27
add esp, 0x5c
push 0x56d2
push 0x7042
lea eax, [ebp - 0x28]
push eax
push 0x59bc
lea eax, [ebp - 0x24]
push eax
push 0x3cd5
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x168]
push eax
push 0x712d
push 1
push 0x7d3b
lea eax, [ebp - 0xa4]
push eax
call fcn.10050f4e
add esp, 0x34
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1f24
push 0x414d
push 1
push 0x37ca
push 0x4852
push 0x2c35
lea eax, [ebp - 0x24]
push eax
push 1
push 0x76d8
push 0x474a
push 0x2c97
call fcn.1004fa95
add esp, 0x34
push 0x797f
push 0x37d1
push 1
push 0x54bc
lea eax, [ebp - 0x10]
push eax
push 1
push 0x4504
push 0x6cba
push 0x57ed
push 0x440b
push 0x376b
push 1
push 0x3244
push 0x3485
push 0xbc5
push 0xffd
push 0x52f2
push 0x60d
push 0x3533
push 0x48c5
push 0x28ca
push 0x1f2a
push 0x2323
call fcn.1004fd27
add esp, 0x5c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x168]
call fcn.10018373
jmp 0x100520d6
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.10050111
add esp, 0x1c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.10018373
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.10018373
jmp 0x1005235f
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x130], eax
call fcn.1005a479
mov esi, eax
mov ecx, dword [ebp - 0x130]
call fcn.10018bbc
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x150]
mov dword [eax], edx
jmp 0x1005238e
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf4], eax
push dword [ebp - 0xf4]
push 0x75fc
push 0
push dword [ebp - 0xfc]
call fcn.1005021e
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret