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

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x17
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x10003d87
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
lea edx, [esp + 0x24]
push edx
push 0
push 5
push 0x11
push 4
call fcn.10033106
lea edx, [esp + 0x2c]
push edx
push 0
push 5
push 0x11
push 4
call fcn.10033106
mov word [esp + 0x34], 7
movzx ebx, word [esp + 0x34]
mov eax, 5
cmp ebx, eax
jl 0x10003e0b
movzx ebx, word [esp + 0x34]
dec ebx
push ebx
pop eax
mov word [esp + 0x38], ax
jmp 0x10003e18
movzx ebx, word [esp + 0x34]
inc ebx
push ebx
pop eax
mov word [esp + 0x38], ax
movzx ebx, word [esp + 0x38]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x10003e32
add esp, 4
jmp 0x10004249
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10003e4a
movzx eax, word [esp + 0x3c]
push eax
pop eax
mov word [esp + 0x38], ax
jmp 0x10003e61
mov ebx, 2
cmp ebx, dword [esp]
jne 0x10003e61
movzx ebx, word [esp + 0x3c]
inc ebx
push ebx
pop eax
mov word [esp + 0x38], ax
pop eax
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp]
pop eax
mov dword [esp + 0x78], eax
push dword [ebp]
pop eax
mov dword [esp + 0x10], eax
lea edx, str.clock
lea ecx, [esp + 0x3c]
call fcn.10032008
mov dword [esp + 0x18], 0
jmp 0x10003e90
mov ebx, dword [esp + 0x7c]
dec ebx
cmp ebx, dword [esp + 0x18]
jl 0x10003f0a
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
mov ebp, dword [edx]
shl ebx, 2
push dword [ebp + ebx]
pop eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
shl ebx, 2
mov ebx, dword [ebp + ebx]
and ebx, ebx
je 0x10003f04
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
shl ebx, 2
mov ebx, dword [ebp + ebx]
inc ebx
push ebx
mov ebx, dword [esp + 0x20]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x10]
jle 0x10003ef1
push dword [esp + 0x1c]
pop eax
mov dword [esp + 0x10], eax
jmp 0x10003f04
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x78]
jge 0x10003f04
push dword [esp + 0x1c]
pop eax
mov dword [esp + 0x78], eax
inc dword [esp + 0x18]
jno 0x10003e90
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
jmp 0x10003f24
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jl 0x10003f85
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
dec edi
mov ebp, dword [esp + 0x24]
shl edi, 2
add ebx, dword [ebp + edi]
add ebx, ebx
mov dword [esp + 0xc], ebx
push dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
mov ebx, dword [esp + 0x14]
add ebx, ebx
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
shl edi, 2
sub ebx, dword [ebp + edi]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
and ebx, ebx
jge 0x10003f7f
jmp 0x10003f85
inc dword [esp + 0x18]
jno 0x10003f24
mov word [esp + 0x40], 4
movzx ebx, word [esp + 0x40]
mov eax, 1
cmp ebx, eax
jl 0x10003fa9
movzx ebx, word [esp + 0x40]
dec ebx
push ebx
pop eax
mov word [esp + 0x44], ax
jmp 0x10003fb6
movzx ebx, word [esp + 0x40]
inc ebx
push ebx
pop eax
mov word [esp + 0x44], ax
movzx ebx, word [esp + 0x44]
push ebx
mov ebx, 0x12
cmp ebx, dword [esp]
jne 0x10003fd0
add esp, 4
jmp 0x10004249
mov ebx, 8
cmp ebx, dword [esp]
jne 0x10003fe8
movzx eax, word [esp + 0x48]
push eax
pop eax
mov word [esp + 0x44], ax
jmp 0x10003fff
mov ebx, 3
cmp ebx, dword [esp]
jne 0x10003fff
movzx ebx, word [esp + 0x48]
inc ebx
push ebx
pop eax
mov word [esp + 0x44], ax
pop eax
push dword [esp + 0x24]
call fcn.100332ae
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x10004019
push dword [esp + 0x24]
call fcn.100332bc
mov ebx, dword [esp + 0x14]
and ebx, ebx
jge 0x10004034
push dword [esp + 0x2c]
call fcn.100332bc
mov eax, 1
jmp 0x10004249
lea edx, str.cycles
lea ecx, [esp + 0x48]
call fcn.10032008
push dword [esp + 0x14]
pop eax
mov dword [esp + 0x20], eax
lea edx, str.comes
lea ecx, [esp + 0x4c]
call fcn.10032008
mov ebx, dword [esp + 0x14]
and ebx, ebx
je 0x10004084
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x1000407c
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x1000407c
mov eax, 1
jmp 0x1000407e
xor eax, eax
and eax, eax
jne 0x10004084
jmp 0x1000408b
mov eax, 1
jmp 0x1000408d
xor eax, eax
mov ebx, eax
and ebx, ebx
jne 0x100040a6
push dword [esp + 0x2c]
call fcn.100332bc
mov eax, 1
jmp 0x10004249
mov word [esp + 0x50], 8
movzx ebx, word [esp + 0x50]
mov eax, 5
cmp ebx, eax
jl 0x100040ca
movzx ebx, word [esp + 0x50]
dec ebx
push ebx
pop eax
mov word [esp + 0x54], ax
jmp 0x100040d7
movzx ebx, word [esp + 0x50]
inc ebx
push ebx
pop eax
mov word [esp + 0x54], ax
movzx ebx, word [esp + 0x54]
push ebx
mov ebx, 0xd
cmp ebx, dword [esp]
jne 0x100040f1
add esp, 4
jmp 0x10004249
mov ebx, 7
cmp ebx, dword [esp]
jne 0x10004109
movzx eax, word [esp + 0x58]
push eax
pop eax
mov word [esp + 0x54], ax
jmp 0x10004120
mov ebx, 3
cmp ebx, dword [esp]
jne 0x10004120
movzx ebx, word [esp + 0x58]
inc ebx
push ebx
pop eax
mov word [esp + 0x54], ax
pop eax
lea edx, str.amount
lea ecx, [esp + 0x58]
call fcn.10032008
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x10039328]
shl ebx, 2
mov eax, dword [ebp + ebx]
inc eax
mov edx, dword [esp + 4]
lea edx, [edx]
push edx
push 0
push 5
push eax
push 4
call fcn.10033106
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x10039328]
shl ebx, 2
mov eax, dword [ebp + ebx]
inc eax
mov edx, dword [esp + 8]
lea edx, [edx]
push edx
push 0
push 5
push eax
push 4
call fcn.10033106
mov dword [esp + 0x18], 0
jmp 0x10004196
mov ebx, dword [esp + 0x7c]
dec ebx
cmp ebx, dword [esp + 0x18]
jl 0x10004238
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
mov ebp, dword [edx]
shl ebx, 2
push dword [ebp + ebx]
pop eax
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
shl ebx, 2
mov ebx, dword [ebp + ebx]
and ebx, ebx
je 0x1000422e
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
shl ebx, 2
push dword [ebp + ebx]
call fcn.10015203
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
shl ebx, 2
mov ebx, dword [ebp + ebx]
inc ebx
push ebx
mov ebx, dword [esp + 0x20]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebp, dword [edx]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
push dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
shl ebx, 2
pop eax
mov dword [ebp + ebx], eax
inc dword [esp + 0x18]
jno 0x10004196
push dword [esp + 0x2c]
call fcn.100332bc
mov eax, dword [esp + 0x20]
jmp 0x10004249
push dword [esp + 0x4c]
call fcn.10033a30
push dword [esp + 0x3c]
call fcn.10033a30
push dword [esp + 0x58]
call fcn.10033a30
push dword [esp + 0x48]
call fcn.10033a30
push eax
push dword [esp + 0x28]
call fcn.100332c1
push dword [esp + 0x30]
call fcn.100332c1
pop eax
add esp, 0x5c
pop edi
pop ebx
pop ebp
ret 0x14