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

Disassembly:
push ebp
push ebx
mov edx, 0x1e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1001876f
mov eax, dword [esp + 0x88]
mov dword [0x10044d80], eax
mov word [esp + 0x3c], 0xa
movzx ebx, word [esp + 0x3c]
mov eax, 3
cmp ebx, eax
jl 0x100187ac
movzx ebx, word [esp + 0x3c]
dec ebx
push ebx
pop eax
mov word [esp + 0x40], ax
jmp 0x100187b9
movzx ebx, word [esp + 0x3c]
inc ebx
push ebx
pop eax
mov word [esp + 0x40], ax
movzx ebx, word [esp + 0x40]
push ebx
mov ebx, 0xb
cmp ebx, dword [esp]
jne 0x100187df
mov eax, dword [esp + 0x8c]
mov dword [0x10044d80], eax
add esp, 4
jmp 0x10018bf3
mov ebx, 5
cmp ebx, dword [esp]
jne 0x100187f7
movzx eax, word [esp + 0x44]
push eax
pop eax
mov word [esp + 0x40], ax
jmp 0x1001880e
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1001880e
movzx ebx, word [esp + 0x44]
inc ebx
push ebx
pop eax
mov word [esp + 0x40], ax
pop eax
mov ebx, dword [esp + 0x84]
and ebx, ebx
jne 0x1001883d
lea edx, str.grape
lea ecx, [esp + 0x44]
call fcn.10031008
jmp 0x10018bf3
mov word [esp + 0x4c], 2
movzx ebx, word [esp + 0x4c]
mov eax, 2
cmp ebx, eax
jl 0x10018861
movzx ebx, word [esp + 0x4c]
dec ebx
push ebx
pop eax
mov word [esp + 0x50], ax
jmp 0x1001886e
movzx ebx, word [esp + 0x4c]
inc ebx
push ebx
pop eax
mov word [esp + 0x50], ax
movzx ebx, word [esp + 0x50]
push ebx
mov ebx, 0xe
cmp ebx, dword [esp]
jne 0x10018894
mov eax, dword [esp + 0x8c]
mov dword [0x10044d80], eax
add esp, 4
jmp 0x10018bf3
mov ebx, 4
cmp ebx, dword [esp]
jne 0x100188ac
movzx eax, word [esp + 0x54]
push eax
pop eax
mov word [esp + 0x50], ax
jmp 0x100188c3
mov ebx, 2
cmp ebx, dword [esp]
jne 0x100188c3
movzx ebx, word [esp + 0x54]
inc ebx
push ebx
pop eax
mov word [esp + 0x50], ax
pop eax
push dword [esp + 0x84]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp], eax
lea ebp, [esp + 0x18]
mov dword [ebp], 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
lea eax, [esp + 0x18]
push eax
call fcn.100013e6
mov ebx, eax
and ebx, ebx
jne 0x1001890c
mov ebx, dword [esp + 0xc]
and ebx, ebx
jle 0x1001890c
mov eax, 1
jmp 0x1001890e
xor eax, eax
and eax, eax
je 0x10018b56
mov dword [esp + 8], 0x20
lea eax, [esp]
push eax
push 0
push 0
push 0x1b
push dword [esp + 0x1c]
call fcn.100023df
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x10018952
mov ebx, dword [esp]
and ebx, ebx
jle 0x10018952
mov eax, 1
jmp 0x10018954
xor eax, eax
and eax, eax
je 0x10018b3e
push dword [esp]
pop eax
mov dword [esp + 0x34], eax
mov dword [esp], 0
push dword [esp + 0x34]
call fcn.1003a7a0
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x30]
and ebx, ebx
jne 0x1001898e
push dword [esp + 0xc]
call fcn.1002fe9f
jmp 0x10018bf3
lea eax, [esp]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x1b
push dword [esp + 0x1c]
call fcn.100023df
mov ebx, eax
and ebx, ebx
jne 0x100189bc
mov ebx, dword [esp]
and ebx, ebx
jle 0x100189bc
mov eax, 1
jmp 0x100189be
xor eax, eax
and eax, eax
je 0x10018b26
lea edx, str.earn
lea ecx, [esp + 0x54]
call fcn.10031008
push dword [0x10044d80]
push dword [0x10044d80]
push 0x19
push 0xffffffff
mov ebx, dword [esp + 0x40]
add ebx, 8
push ebx
call fcn.1003a930
lea eax, [esp + 8]
push eax
call fcn.1003ad80
lea edx, [esp + 0x58]
push edx
push 0x1003f1c8
push 8
push 1
push 4
call fcn.1003a3c2
push dword [0x10044d80]
push dword [0x10044d80]
push 0x5c
call fcn.1001251d
add dword [0x10044d80], 2
push dword [esp + 0xc]
lea edx, [esp + 0x64]
push edx
mov edx, dword [0x1003fd28]
add dword [esp + 8], edx
call fcn.10013992
pop dword [0x10044d80]
push dword [esp + 0x58]
call fcn.1003a56a
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x38]
cmp ebx, 0xffffffff
jle 0x10018a9f
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x58]
shl ebx, 2
mov edx, dword [ebp + ebx]
push dword [0x10044d80]
push edx
call fcn.1003ad20
lea eax, [esp + 8]
push eax
call fcn.1003ad80
push dword [esp + 0x58]
call fcn.1003a578
mov word [esp + 0x60], 4
movzx ebx, word [esp + 0x60]
mov eax, 4
cmp ebx, eax
jl 0x10018ac3
movzx ebx, word [esp + 0x60]
dec ebx
push ebx
pop eax
mov word [esp + 0x64], ax
jmp 0x10018ad0
movzx ebx, word [esp + 0x60]
inc ebx
push ebx
pop eax
mov word [esp + 0x64], ax
movzx ebx, word [esp + 0x64]
push ebx
mov ebx, 0x12
cmp ebx, dword [esp]
jne 0x10018af6
mov eax, dword [esp + 0x8c]
mov dword [0x10044d80], eax
add esp, 4
jmp 0x10018bf3
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10018b0e
movzx eax, word [esp + 0x68]
push eax
pop eax
mov word [esp + 0x64], ax
jmp 0x10018b25
mov ebx, 2
cmp ebx, dword [esp]
jne 0x10018b25
movzx ebx, word [esp + 0x68]
inc ebx
push ebx
pop eax
mov word [esp + 0x64], ax
pop eax
lea edx, str.socks
lea ecx, [esp + 0x68]
call fcn.10031008
push dword [esp + 0x30]
call fcn.1003a910
push dword [esp + 0xc]
call fcn.1002fe9f
lea edx, str.reveals
lea ecx, [esp + 0x6c]
call fcn.10031008
mov word [esp + 0x70], 6
movzx ebx, word [esp + 0x70]
mov eax, 3
cmp ebx, eax
jl 0x10018b7a
movzx ebx, word [esp + 0x70]
dec ebx
push ebx
pop eax
mov word [esp + 0x74], ax
jmp 0x10018b87
movzx ebx, word [esp + 0x70]
inc ebx
push ebx
pop eax
mov word [esp + 0x74], ax
movzx ebx, word [esp + 0x74]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x10018baa
mov eax, dword [esp + 0x8c]
mov dword [0x10044d80], eax
add esp, 4
jmp 0x10018bf3
mov ebx, 9
cmp ebx, dword [esp]
jne 0x10018bc2
movzx eax, word [esp + 0x78]
push eax
pop eax
mov word [esp + 0x74], ax
jmp 0x10018bd9
mov ebx, 5
cmp ebx, dword [esp]
jne 0x10018bd9
movzx ebx, word [esp + 0x78]
inc ebx
push ebx
pop eax
mov word [esp + 0x74], ax
pop eax
mov edx, dword [esp + 4]
push dword [0x10044d80]
push edx
call fcn.1003ad20
pop eax
add eax, dword [0x1003fd28]
jmp 0x10018c03
mov eax, dword [0x10044d80]
add eax, dword [0x1003fd28]
mov word [eax], 0
push dword [esp + 0x6c]
call fcn.1003acf0
push dword [esp + 0x48]
call fcn.1003acf0
push dword [esp + 0x68]
call fcn.1003acf0
push dword [esp + 0x44]
call fcn.1003acf0
push dword [esp + 0x54]
call fcn.1003acf0
push dword [esp + 4]
call fcn.1003acf0
push eax
push dword [esp + 0x5c]
call fcn.1003a57d
pop eax
add esp, 0x78
pop ebx
pop ebp
ret 4