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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f50a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push esi
and dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10052b07
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x15c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x168]
movzx eax, byte [eax]
test eax, eax
je 0x10052ab3
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100519c8
jmp 0x10052b43
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0x4550
je 0x100519e7
jmp 0x10052b43
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
jne 0x10051a05
jmp 0x10052b43
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x48], eax
and dword [ebp - 0xc4], 0
jmp 0x10051a39
mov eax, dword [ebp - 0xc4]
inc eax
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x48]
add eax, 0x28
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xc4], eax
jge 0x10051abc
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xf8]
jb 0x10051ab7
mov eax, dword [ebp - 0x40]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x48]
push dword [eax + 8]
call fcn.1004f36f
pop ecx
pop ecx
add eax, dword [ebp - 0xf8]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x164]
jae 0x10051ab7
push 0x8ec
push 0
lea eax, [ebp - 0x48]
push eax
push 0x25ba
push 0x27e5
lea eax, [ebp - 0x24]
push eax
push 0x6ade
push 0
call fcn.10050864
add esp, 0x20
jmp 0x10051abc
jmp 0x10051a23
cmp dword [ebp - 0x24], 0
jne 0x10051ac7
jmp 0x10052b43
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
call fcn.1004d80a
push eax
call fcn.10056951
pop ecx
mov byte [ebp - 0x9c], 1
mov byte [ebp - 0x9b], 0x14
mov byte [ebp - 0x9a], 5
mov byte [ebp - 0x99], 4
mov byte [ebp - 0x98], 4
mov byte [ebp - 0x97], 0x61
mov byte [ebp - 0x96], 0x59
mov byte [ebp - 0x95], 0xa3
mov byte [ebp - 0x94], 0xdd
mov byte [ebp - 0x93], 0
mov byte [ebp - 0x92], 0
mov byte [ebp - 0x91], 9
mov byte [ebp - 0x90], 1
mov byte [ebp - 0x8f], 6
mov byte [ebp - 0x8e], 1
mov byte [ebp - 0x8d], 2
mov byte [ebp - 0x8c], 6
mov byte [ebp - 0x8b], 3
mov byte [ebp - 0x8a], 0
mov byte [ebp - 0x89], 8
mov byte [ebp - 0x88], 7
mov byte [ebp - 0x87], 4
mov byte [ebp - 0x86], 8
mov byte [ebp - 0x85], 7
mov byte [ebp - 0x84], 0xe
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x9c]
or eax, 0x21
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x9c]
and ecx, 0x21
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x9c]
mov byte [ebp + ecx - 0x12c], al
mov dword [ebp - 0x2c], 2
and dword [ebp - 0xb4], 0
jmp 0x10051be3
mov eax, dword [ebp - 0x2c]
inc eax
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x19
jae 0x10051cb9
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x9c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x2c], eax
jne 0x10051c2d
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x9c]
inc eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x9c]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x2c], eax
jmp 0x10051bdb
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 0x9b]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0xb4]
movzx ecx, byte [ebp + ecx - 0x9e]
movsx ecx, byte [ebp + ecx - 0x12c]
or eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ebp + ecx - 0x9b]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0xb4]
movzx edx, byte [ebp + edx - 0x9e]
movsx edx, byte [ebp + edx - 0x12c]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ebp + ecx - 0x9c]
mov byte [ebp + ecx - 0x12c], al
lea eax, [ebp - 0xb4]
push eax
push 1
push 0x279
push 0
push 0x52f2
push 0x2168
push 0x1de7
call fcn.10051876
add esp, 0x1c
jmp 0x10051bdb
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x240]
call fcn.100216c1
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x174], eax
and dword [ebp - 4], 0
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x174]
call fcn.1004d7cf
pop ecx
mov dword [ebp - 0x1b0], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.100216e4
and dword [ebp - 0xb0], 0
jmp 0x10051d2a
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xb
jae 0x10051d43
mov eax, dword [ebp - 0xb0]
mov byte [ebp + eax - 0x12c], 0
jmp 0x10051d1d
mov byte [ebp - 0x6c], 7
mov byte [ebp - 0x6b], 0x9a
mov byte [ebp - 0x6a], 0
mov byte [ebp - 0x69], 7
mov byte [ebp - 0x68], 2
mov byte [ebp - 0x67], 6
mov byte [ebp - 0x66], 6
mov byte [ebp - 0x65], 0xe
mov byte [ebp - 0x64], 4
mov byte [ebp - 0x63], 0xd
mov byte [ebp - 0x62], 8
mov byte [ebp - 0x61], 4
mov byte [ebp - 0x60], 5
mov byte [ebp - 0x5f], 1
mov byte [ebp - 0x5e], 9
mov byte [ebp - 0x5d], 1
mov byte [ebp - 0x5c], 3
mov byte [ebp - 0x5b], 0xe4
mov byte [ebp - 0x5a], 0x28
mov byte [ebp - 0x59], 0xbf
mov byte [ebp - 0x58], 3
mov byte [ebp - 0x57], 2
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], 4
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x6c]
or eax, 0xac
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x6c]
and ecx, 0xac
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x6c]
mov byte [ebp + ecx - 0x120], al
mov dword [ebp - 0x20], 2
and dword [ebp - 0x80], 0
jmp 0x10051ded
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x18
jae 0x10051e9e
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x6c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x20], eax
jne 0x10051e2b
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x6c]
inc eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x6c]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x20], eax
jmp 0x10051de5
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x6b]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x80]
movzx ecx, byte [ebp + ecx - 0x6e]
movsx ecx, byte [ebp + ecx - 0x120]
add eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x6b]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x80]
movzx edx, byte [ebp + edx - 0x6e]
movsx edx, byte [ebp + edx - 0x120]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x6b]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x80]
movzx edx, byte [ebp + edx - 0x6e]
movsx edx, byte [ebp + edx - 0x120]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x20]
movzx ecx, byte [ebp + ecx - 0x6c]
mov byte [ebp + ecx - 0x120], al
and dword [ebp - 0x80], 0
jmp 0x10051de5
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0x120], 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x288]
call fcn.100216c1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 1
push 0xa
xor edx, edx
mov ecx, dword [ebp - 0x184]
call fcn.1004d7cf
pop ecx
mov dword [ebp - 0x148], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.100216e4
and dword [ebp - 0xa4], 0
jmp 0x10051f12
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xb
jae 0x10051f2b
mov eax, dword [ebp - 0xa4]
mov byte [ebp + eax - 0x120], 0
jmp 0x10051f05
mov dword [ebp - 0x1ac], 0x1d79
cmp dword [ebp - 0x1ac], 0x10bc
jge 0x1005201a
lea eax, [ebp - 0xbc]
push eax
push 0x1000769c
call fcn.10055bab
pop ecx
pop ecx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0xbc]
dec eax
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0x1a8], 0
je 0x1005201a
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xb8]
push eax
push 0x100079dc
call fcn.10055bab
add esp, 0xc
mov eax, dword [ebp - 0xb8]
add eax, dword [ebp - 0xcc]
cdq
push 3
pop ecx
idiv ecx
test edx, edx
jne 0x10051fd8
mov eax, dword [ebp - 0xcc]
shl eax, 1
cmp dword [ebp - 0xb8], eax
jg 0x10051fd8
mov eax, dword [ebp - 0xb8]
shl eax, 1
cmp dword [ebp - 0xcc], eax
jg 0x10051fd8
and dword [ebp - 0x100], 0
jmp 0x10051fe2
mov dword [ebp - 0x100], 1
mov al, byte [ebp - 0x100]
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x10051fff
mov dword [ebp - 0x110], 0x100078c4
jmp 0x10052009
mov dword [ebp - 0x110], 0x100078c0
push dword [ebp - 0x110]
call fcn.10055f96
pop ecx
jmp 0x10051f58
push dword [ebp - 0x148]
push dword [ebp - 0x1b0]
call fcn.1004eec8
pop ecx
pop ecx
mov dword [ebp - 0x108], eax
push 1
lea eax, [ebp - 0x40]
push eax
push 0x5a35
push 0x5080
push 0
lea eax, [ebp - 0x108]
push eax
push 0x112f
call fcn.1005013c
add esp, 0x1c
push 0x73bc
push 1
lea eax, [ebp - 0x108]
push eax
push 0x55a
push 0x52ca
push 0x3226
push 0x77c
push 0x75aa
push 0
push 0x9c9
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.10050bed
add esp, 0x30
and dword [ebp - 0x78], 0
push 0x15fa
push 1
push 0x356f
lea eax, [ebp - 0x78]
push eax
push 0x7215
lea eax, [ebp - 0x10]
push eax
push 0x6278
push 0x73cd
push 1
push 0x4e76
push 1
push 0x38be
call fcn.10050bed
add esp, 0x30
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x7c], 0
jmp 0x100520f4
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x4c]
jge 0x100521fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
sub eax, dword [ecx + 0x18]
cmp dword [ebp - 0x7c], eax
jae 0x1005215e
push 0x60fe
lea eax, [ebp - 0x10]
push eax
push 0x2473
push 1
push 0xeef
lea eax, [ebp - 0x7c]
push eax
push 0x7dc4
lea eax, [ebp - 0xf0]
push eax
push 0
push 0x7519
lea eax, [ebp - 0x24]
push eax
push 0x529d
push 0x73a3
lea eax, [ebp - 0x28]
push eax
push 0x2544
call fcn.10051436
add esp, 0x3c
jmp 0x1005219a
push 0x534a
lea eax, [ebp - 0xf0]
push eax
push 1
lea eax, [ebp - 0x48]
push eax
push 0x29d6
push 0x2176
push 1
push 0x1e54
push 0x72d8
push 0x4f0a
push 0x28ee
push 0
call fcn.100516df
add esp, 0x30
push 0x1e17
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x3ac5
push 1
call fcn.10050d70
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
push 0
push 0x6d2c
push 0x4c4d
push 1
push 0x6a90
push 0x7311
push 0x60a2
push 0x5c0b
push 0x19de
call fcn.10050937
add esp, 0x28
jmp 0x100520ed
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
push 1
push 1
push 0x76ec
push 0x2c57
push 0x4305
push 1
lea eax, [ebp - 0x10]
push eax
push 0x60e
lea eax, [ebp - 0x78]
push eax
push 0x255c
lea eax, [ebp - 0x4c]
push eax
push 0x7dea
call fcn.10050eb8
add esp, 0x30
and dword [ebp - 0xd4], 0
jmp 0x10052258
mov eax, dword [ebp - 0xd4]
inc eax
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0x4c]
jge 0x1005228b
push 0x94e
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.1005076a
add esp, 0x18
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
jmp 0x1005224b
mov eax, dword [ebp - 0x4c]
shl eax, 2
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
sub eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x5a6c
push 0x2f57
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x30bc
push 0x4346
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x282f
call fcn.10051165
add esp, 0x30
mov eax, dword [ebp - 0x4c]
shl eax, 1
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1f8]
call fcn.100216c1
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1f8]
call fcn.10021730
mov dword [ebp - 0xe4], eax
push dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe4]
shr eax, 1
push eax
call fcn.1004eec8
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x3c], 1
mov byte [ebp - 0x3b], 0xc1
mov byte [ebp - 0x3a], 0
mov byte [ebp - 0x39], 0x4a
mov byte [ebp - 0x38], 2
mov byte [ebp - 0x37], 0x48
mov byte [ebp - 0x36], 0x3e
mov byte [ebp - 0x35], 2
mov byte [ebp - 0x34], 0x42
mov byte [ebp - 0x33], 3
mov byte [ebp - 0x32], 0
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x3c]
or eax, 0xa5
xor ecx, ecx
inc ecx
shl ecx, 0
movzx ecx, byte [ebp + ecx - 0x3c]
and ecx, 0xa5
sub eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movzx ecx, byte [ebp + ecx - 0x3c]
mov byte [ebp + ecx - 0x54], al
mov dword [ebp - 0x1c], 2
and dword [ebp - 0x74], 0
jmp 0x100523b0
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb
jae 0x1005247a
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x3c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x1c], eax
jne 0x100523ee
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x3c]
inc eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x3c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x1c], eax
jmp 0x100523a8
mov eax, dword [ebp - 0x1c]
movzx eax, byte [ebp + eax - 0x3b]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x74]
movzx ecx, byte [ebp + ecx - 0x3e]
movsx ecx, byte [ebp + ecx - 0x54]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x3b]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x74]
movzx edx, byte [ebp + edx - 0x3e]
movsx edx, byte [ebp + edx - 0x54]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x3b]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x74]
movzx edx, byte [ebp + edx - 0x3e]
movsx edx, byte [ebp + edx - 0x54]
and ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ebp + ecx - 0x3c]
mov byte [ebp + ecx - 0x54], al
lea eax, [ebp - 0x74]
push eax
push 1
push 0x115f
push 0x4bc8
push 0x74b9
push 0x5bbc
push 0x276b
push 0
call fcn.10050864
add esp, 0x20
jmp 0x100523a8
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x54], 0
cmp dword [ebp - 0x70], 4
jle 0x1005253c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x258]
call fcn.100216c1
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
sub eax, 4
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.1004f23f
pop ecx
pop ecx
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
push dword [ebp - 0x158]
mov edx, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x270]
call fcn.1005314a
pop ecx
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x18]
or eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x104], eax
jmp 0x10052568
push dword [ebp - 0x70]
lea eax, [ebp - 0x210]
push eax
call fcn.1004f23f
pop ecx
pop ecx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x18]
or eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x18c], eax
push dword [ebp - 0x18c]
lea ecx, [ebp - 0x1e0]
call fcn.10052cfc
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x18]
and eax, 8
je 0x100525a3
and dword [ebp - 0x18], 0xfffffff7
lea ecx, [ebp - 0x210]
call fcn.100216e4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
and eax, 4
je 0x100525be
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0x270]
call fcn.100216e4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
and eax, 2
je 0x100525d9
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x228]
call fcn.100216e4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
and eax, 1
je 0x100525f4
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x258]
call fcn.100216e4
and dword [ebp - 0xac], 0
jmp 0x1005260a
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 5
jae 0x10052620
mov eax, dword [ebp - 0xac]
mov byte [ebp + eax - 0x54], 0
jmp 0x100525fd
push 0x6500
push 0x77f1
push 1
push 0x5657
push 0x444f
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4dcb
push 0x185e
push 0x63e8
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.100516df
add esp, 0x30
push 0
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1e0]
call fcn.10052d44
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
push 1
push 0
lea eax, [ebp - 0x24]
push eax
push 0x448
lea eax, [ebp - 0x28]
push eax
push 0
push 0x5daf
push 0x29f7
push 0x5c01
lea eax, [ebp - 0x14]
push eax
push 0x6ea5
push 0xe6
call fcn.10050eb8
add esp, 0x30
lea eax, [ebp - 0x14]
push eax
push 0x7e10
push 1
push 0x1ca5
push 1
push 0x4f8d
call fcn.1005076a
add esp, 0x18
mov dword [ebp - 0x170], 0x15b0
cmp dword [ebp - 0x170], 0xeb7
jge 0x10052849
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0xec]
push eax
push 0x10007958
call fcn.10055bab
add esp, 0xc
mov eax, dword [ebp - 0xec]
inc eax
push eax
lea ecx, [ebp - 0x138]
call fcn.1002196b
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xa0], 1
jmp 0x1005273b
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xec]
jg 0x10052769
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x138]
call fcn.1002185c
push eax
push 0x1000769c
call fcn.10055bab
pop ecx
pop ecx
jmp 0x1005272e
and dword [ebp - 0xd0], 0
and dword [ebp - 0xc0], 0
jmp 0x10052786
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x190]
jge 0x10052828
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x10007958
call fcn.10055bab
add esp, 0xc
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x138]
call fcn.1002185c
mov esi, eax
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x138]
call fcn.1002185c
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x100527f8
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x138]
call fcn.1002185c
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
jmp 0x10052811
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x138]
call fcn.1002185c
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xd0]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0xd0], eax
jmp 0x10052779
push dword [ebp - 0xd0]
push 0x100079ec
call fcn.10055ddf
pop ecx
pop ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x138]
call fcn.100217e7
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
jbe 0x100528a7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, edx
div dword [ecx + 0x18]
cmp eax, 0xc
jbe 0x1005287b
mov dword [ebp - 0xfc], 0xc
jmp 0x10052899
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, edx
div dword [ecx + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xdc], eax
jmp 0x100528ae
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
and dword [ebp - 0xa8], 0
jmp 0x100528d0
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax + 0x18]
jae 0x10052a2d
push dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd8]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.1004eec8
pop ecx
pop ecx
mov dword [ebp - 0xc8], eax
push dword [ebp - 0xc8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.1004f23f
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
push 0x3ef
push 0x3cba
push 0x3c87
push 1
lea eax, [ebp - 0x28]
push eax
push 0x23ba
lea eax, [ebp - 0x10]
push eax
push 0x2cf3
push 1
lea eax, [ebp - 0xa8]
push eax
push 0x5bc9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x785d
push 0x6d26
call fcn.10051436
add esp, 0x3c
push 0
push dword [ebp - 0xc8]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.10052d44
push 1
push 1
push 0x2b97
lea eax, [ebp - 0xc8]
push eax
push 0x1416
push 0
push 0x7587
lea eax, [ebp - 0x14]
push eax
push 0x3344
push 0x4ecb
push 0x7724
push 0x879
call fcn.10050eb8
add esp, 0x30
push 0x5b58
push 1
lea eax, [ebp - 0x24]
push eax
push 0x5f2
push 1
push 0x7f58
lea eax, [ebp - 0x14]
push eax
push 0x7b02
push 0x5164
lea eax, [ebp - 0x28]
push eax
call fcn.10050937
add esp, 0x28
push 0x2c78
push 1
push 0x382
lea eax, [ebp - 0x14]
push eax
push 0x616f
push 0x579a
push 0x25c8
push 1
push 1
call fcn.100515c4
add esp, 0x24
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c8]
call fcn.100216e4
jmp 0x100528c3
and dword [ebp - 0xe8], 0
lea eax, [ebp - 0x14]
push eax
push 0x3d7e
push 1
push 0x20d5
lea eax, [ebp - 0x30]
push eax
push 0x6756
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5dce
push 1
call fcn.100516df
add esp, 0x30
push 0x28b3
push 1
push 0x42d
push 1
push 0x7e7d
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10051876
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e0]
call fcn.100216e4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f8]
call fcn.100216e4
jmp 0x10052b05
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x188], eax
call fcn.10056930
mov esi, eax
mov ecx, dword [ebp - 0x188]
call fcn.10021730
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x140]
mov dword [eax], edx
jmp 0x10052b43
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
push 1
push dword [ebp - 0x144]
push dword [ebp - 0x14c]
push 0x2866
push dword [ebp - 0x154]
call fcn.1004f215
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret