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

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x26
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1002ec6b
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov edx, dword [esp]
mov ebx, dword [edx]
and ebx, ebx
jne 0x1002ec95
xor eax, eax
movsx eax, al
jmp 0x1002f873
lea edx, str.economy
lea ecx, [esp + 0x24]
call fcn.10031008
mov edx, dword [esp]
push dword [edx]
call fcn.10037576
mov dword [esp + 0x20], eax
mov word [esp + 0x28], 2
movzx ebx, word [esp + 0x28]
mov eax, 5
cmp ebx, eax
jl 0x1002ecd6
movzx ebx, word [esp + 0x28]
dec ebx
push ebx
pop eax
mov word [esp + 0x2c], ax
jmp 0x1002ece3
movzx ebx, word [esp + 0x28]
inc ebx
push ebx
pop eax
mov word [esp + 0x2c], ax
movzx ebx, word [esp + 0x2c]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x1002ecfd
add esp, 4
jmp 0x1002f873
mov ebx, 9
cmp ebx, dword [esp]
jne 0x1002ed15
movzx eax, word [esp + 0x30]
push eax
pop eax
mov word [esp + 0x2c], ax
jmp 0x1002ed2c
mov ebx, 4
cmp ebx, dword [esp]
jne 0x1002ed2c
movzx ebx, word [esp + 0x30]
inc ebx
push ebx
pop eax
mov word [esp + 0x2c], ax
pop eax
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jle 0x1002ed43
mov ebx, dword [esp + 0xac]
and ebx, ebx
je 0x1002ed43
jmp 0x1002ed4a
mov eax, 1
jmp 0x1002ed4c
xor eax, eax
and eax, eax
je 0x1002ed5a
xor eax, eax
movsx eax, al
jmp 0x1002f873
lea edx, str.tragic
lea ecx, [esp + 0x30]
call fcn.10031008
mov ebp, dword [esp + 0xac]
mov dword [ebp], 0
mov dword [0x10041f3c], 0
mov byte [0x10041fd4], 0
mov dword [0x10041f20], 0
lea edx, [esp + 0x34]
push edx
push 0
push 0x18
push 0x8000
push 1
call fcn.100373ce
mov word [esp + 0x3c], 0xa
movzx ebx, word [esp + 0x3c]
mov eax, 1
cmp ebx, eax
jl 0x1002edd4
movzx ebx, word [esp + 0x3c]
dec ebx
push ebx
pop eax
mov word [esp + 0x40], ax
jmp 0x1002ede1
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, 0xf
cmp ebx, dword [esp]
jne 0x1002edfb
add esp, 4
jmp 0x1002f873
mov ebx, 9
cmp ebx, dword [esp]
jne 0x1002ee13
movzx eax, word [esp + 0x44]
push eax
pop eax
mov word [esp + 0x40], ax
jmp 0x1002ee2a
mov ebx, 3
cmp ebx, dword [esp]
jne 0x1002ee2a
movzx ebx, word [esp + 0x44]
inc ebx
push ebx
pop eax
mov word [esp + 0x40], ax
pop eax
mov eax, dword [esp + 0x20]
inc eax
push 0x10042070
push 0
push 0x18
push eax
push 1
call fcn.100373ce
push dword [0x10042070]
mov edx, dword [esp + 4]
push dword [edx]
call fcn.10037692
lea edx, str.saddle
lea ecx, [esp + 0x44]
call fcn.10031008
mov word [esp + 0x48], 7
movzx ebx, word [esp + 0x48]
mov eax, 2
cmp ebx, eax
jl 0x1002ee8e
movzx ebx, word [esp + 0x48]
dec ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
jmp 0x1002ee9b
movzx ebx, word [esp + 0x48]
inc ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
movzx ebx, word [esp + 0x4c]
push ebx
mov ebx, 0x10
cmp ebx, dword [esp]
jne 0x1002eeb5
add esp, 4
jmp 0x1002f873
mov ebx, 9
cmp ebx, dword [esp]
jne 0x1002eecd
movzx eax, word [esp + 0x50]
push eax
pop eax
mov word [esp + 0x4c], ax
jmp 0x1002eee4
mov ebx, 4
cmp ebx, dword [esp]
jne 0x1002eee4
movzx ebx, word [esp + 0x50]
inc ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
pop eax
push 1
call fcn.1002b97e
mov dword [esp + 0x14], eax
push 2
call fcn.1002b97e
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x1002f07b
push dword [esp + 0x38]
call fcn.10037576
mov ebx, eax
mov ebp, dword [esp + 0xb0]
mov edi, dword [ebp]
add edi, 0xfffe
cmp ebx, edi
jge 0x1002ef46
mov ebp, dword [esp + 0xb0]
mov ebx, dword [ebp]
add ebx, 0xfffe
mov eax, ebx
inc eax
lea edx, [esp + 0x38]
push edx
push eax
call fcn.100376a4
movzx ebx, byte [0x10041fd4]
mov eax, 8
cmp ebx, eax
jl 0x1002ef76
movzx ebx, byte [0x10041fd4]
add ebx, 0xfffffff8
push ebx
pop eax
mov byte [0x10041fd4], al
mov ebx, dword [0x10041f3c]
dec ebx
mov dword [0x10041f3c], ebx
jmp 0x1002ef46
mov dword [0x10041f20], 0
mov byte [0x10041fd4], 0
mov ebx, dword [0x10041f3c]
mov ebp, dword [0x10042070]
movzx ebx, byte [ebp + ebx]
mov edi, dword [0x10041f3c]
inc edi
movzx edi, byte [ebp + edi]
shl edi, 8
add ebx, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [0x10041f3c]
add ebx, 2
mov dword [0x10041f3c], ebx
mov ebx, dword [0x10041f3c]
movzx ebx, byte [ebp + ebx]
mov edi, dword [0x10041f3c]
inc edi
movzx edi, byte [ebp + edi]
shl edi, 8
add ebx, edi
mov dword [esp + 0xc], ebx
mov ebx, dword [0x10041f3c]
add ebx, 2
mov dword [0x10041f3c], ebx
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
not edi
and edi, 0xffff
sub ebx, edi
and ebx, ebx
je 0x1002f00e
mov byte [esp + 0x20], 1
add esp, 4
jmp 0x1002f308
mov dword [esp + 0x14], 1
jmp 0x1002f018
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x1002f071
mov ebx, dword [0x10041f3c]
mov ebp, dword [0x10042070]
movzx eax, byte [ebp + ebx]
push eax
mov ebp, dword [esp + 0xb4]
mov ebx, dword [ebp]
mov ebp, dword [esp + 0x3c]
pop eax
mov byte [ebp + ebx], al
mov ebp, dword [esp + 0xb0]
mov ebx, dword [ebp]
inc ebx
push ebx
mov ebp, dword [esp + 0xb4]
pop eax
mov dword [ebp], eax
mov ebx, dword [0x10041f3c]
inc ebx
mov dword [0x10041f3c], ebx
inc dword [esp + 0x14]
jno 0x1002f018
mov byte [esp + 0x1c], 0
jmp 0x1002f136
mov ebx, 1
cmp ebx, dword [esp]
jne 0x1002f0f0
push 0x120
push dword [0x10041f84]
push 0x10042058
push 0x10042050
push 0x10042000
call fcn.10004559
mov ebx, eax
and ebx, ebx
je 0x1002f0b7
mov byte [esp + 0x20], 1
add esp, 4
jmp 0x1002f308
push 0x20
push dword [0x10041f44]
push 0x10042068
push 0x10042060
push 0x10042008
call fcn.10004559
mov ebx, eax
and ebx, ebx
je 0x1002f0e9
mov byte [esp + 0x20], 1
add esp, 4
jmp 0x1002f308
mov byte [esp + 0x1c], 1
jmp 0x1002f136
mov ebx, 2
cmp ebx, dword [esp]
jne 0x1002f11a
call fcn.1002c3ec
mov ebx, eax
cmp ebx, 1
je 0x1002f113
mov byte [esp + 0x20], 1
add esp, 4
jmp 0x1002f308
mov byte [esp + 0x1c], 1
jmp 0x1002f136
mov ebx, 3
cmp ebx, dword [esp]
jne 0x1002f136
mov byte [esp + 0x20], 1
add esp, 4
jmp 0x1002f308
pop eax
movsx ebx, byte [esp + 0x18]
cmp ebx, 1
jne 0x1002f2ef
push dword [esp + 0x34]
call fcn.10037576
mov ebx, eax
mov ebp, dword [esp + 0xac]
mov edi, dword [ebp]
add edi, 0x101
cmp ebx, edi
jge 0x1002f182
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
add ebx, 0x10000
mov eax, ebx
inc eax
lea edx, [esp + 0x34]
push edx
push eax
call fcn.100376a4
push dword [0x10041f84]
push 0x10042058
push 0x10042050
call fcn.1001a31f
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 0x100
jge 0x1002f1da
push dword [esp + 4]
mov ebp, dword [esp + 0xb0]
mov ebx, dword [ebp]
mov ebp, dword [esp + 0x38]
pop eax
mov byte [ebp + ebx], al
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
inc ebx
push ebx
mov ebp, dword [esp + 0xb0]
pop eax
mov dword [ebp], eax
jmp 0x1002f2db
mov ebx, dword [esp + 4]
cmp ebx, 0x100
jne 0x1002f1f0
jmp 0x1002f2e0
mov ebx, dword [esp + 4]
cmp ebx, 0x100
jle 0x1002f2db
mov ebx, dword [esp + 4]
add ebx, 0xfffffeff
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
mov ebp, dword [0x10041fe0]
add ebx, ebx
movsx ebx, word [ebp + ebx]
mov edi, dword [esp + 4]
mov ebp, dword [0x10041ff0]
movsx eax, byte [ebp + edi]
push eax
call fcn.1002b97e
add ebx, eax
mov dword [esp + 0xc], ebx
push dword [0x10041f44]
push 0x10042068
push 0x10042060
call fcn.1001a31f
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
mov ebp, dword [0x10041fe8]
add ebx, ebx
movzx ebx, word [ebp + ebx]
mov edi, dword [esp + 4]
mov ebp, dword [0x10041ff8]
movsx eax, byte [ebp + edi]
push eax
call fcn.1002b97e
add ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 1
jmp 0x1002f289
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x1002f2db
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
sub ebx, dword [esp + 8]
mov ebp, dword [esp + 0x34]
movzx eax, byte [ebp + ebx]
push eax
mov ebp, dword [esp + 0xb0]
mov ebx, dword [ebp]
mov ebp, dword [esp + 0x38]
pop eax
mov byte [ebp + ebx], al
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
inc ebx
push ebx
mov ebp, dword [esp + 0xb0]
pop eax
mov dword [ebp], eax
inc dword [esp + 0x10]
jno 0x1002f289
jmp 0x1002f145
lea edx, str.queries
lea ecx, [esp + 0x50]
call fcn.10031008
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x1002f2fb
xor eax, eax
jmp 0x1002f300
mov eax, 1
and eax, eax
je 0x1002eee5
mov byte [0x10041fd4], 0
mov dword [0x10041f20], 0
mov dword [0x10041f58], 0
mov dword [0x10041f3c], 0
mov dword [0x10041f78], 0
mov word [esp + 0x54], 3
movzx ebx, word [esp + 0x54]
mov eax, 3
cmp ebx, eax
jl 0x1002f35b
movzx ebx, word [esp + 0x54]
dec ebx
push ebx
pop eax
mov word [esp + 0x58], ax
jmp 0x1002f368
movzx ebx, word [esp + 0x54]
inc ebx
push ebx
pop eax
mov word [esp + 0x58], ax
movzx ebx, word [esp + 0x58]
push ebx
mov ebx, 0xe
cmp ebx, dword [esp]
jne 0x1002f382
add esp, 4
jmp 0x1002f873
mov ebx, 4
cmp ebx, dword [esp]
jne 0x1002f39a
movzx eax, word [esp + 0x5c]
push eax
pop eax
mov word [esp + 0x58], ax
jmp 0x1002f3b1
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1002f3b1
movzx ebx, word [esp + 0x5c]
inc ebx
push ebx
pop eax
mov word [esp + 0x58], ax
pop eax
push dword [0x10042050]
call fcn.10037576
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x1002f3cf
push dword [0x10042050]
call fcn.10037584
push dword [0x10042058]
call fcn.10037576
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x1002f3ec
push dword [0x10042058]
call fcn.10037584
push dword [0x10042060]
call fcn.10037576
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x1002f488
mov word [esp + 0x5c], 8
movzx ebx, word [esp + 0x5c]
mov eax, 3
cmp ebx, eax
jl 0x1002f426
movzx ebx, word [esp + 0x5c]
dec ebx
push ebx
pop eax
mov word [esp + 0x60], ax
jmp 0x1002f433
movzx ebx, word [esp + 0x5c]
inc ebx
push ebx
pop eax
mov word [esp + 0x60], ax
movzx ebx, word [esp + 0x60]
push ebx
mov ebx, 0x12
cmp ebx, dword [esp]
jne 0x1002f44d
add esp, 4
jmp 0x1002f873
mov ebx, 4
cmp ebx, dword [esp]
jne 0x1002f465
movzx eax, word [esp + 0x64]
push eax
pop eax
mov word [esp + 0x60], ax
jmp 0x1002f47c
mov ebx, 3
cmp ebx, dword [esp]
jne 0x1002f47c
movzx ebx, word [esp + 0x64]
inc ebx
push ebx
pop eax
mov word [esp + 0x60], ax
pop eax
push dword [0x10042060]
call fcn.10037584
push dword [0x10042068]
call fcn.10037576
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x1002f59f
mov word [esp + 0x64], 6
movzx ebx, word [esp + 0x64]
mov eax, 1
cmp ebx, eax
jl 0x1002f4c2
movzx ebx, word [esp + 0x64]
dec ebx
push ebx
pop eax
mov word [esp + 0x68], ax
jmp 0x1002f4cf
movzx ebx, word [esp + 0x64]
inc ebx
push ebx
pop eax
mov word [esp + 0x68], ax
movzx ebx, word [esp + 0x68]
push ebx
mov ebx, 0xd
cmp ebx, dword [esp]
jne 0x1002f4e9
add esp, 4
jmp 0x1002f873
mov ebx, 8
cmp ebx, dword [esp]
jne 0x1002f501
movzx eax, word [esp + 0x6c]
push eax
pop eax
mov word [esp + 0x68], ax
jmp 0x1002f518
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1002f518
movzx ebx, word [esp + 0x6c]
inc ebx
push ebx
pop eax
mov word [esp + 0x68], ax
pop eax
push dword [0x10042068]
call fcn.10037584
mov word [esp + 0x6c], 5
movzx ebx, word [esp + 0x6c]
mov eax, 5
cmp ebx, eax
jl 0x1002f548
movzx ebx, word [esp + 0x6c]
dec ebx
push ebx
pop eax
mov word [esp + 0x70], ax
jmp 0x1002f555
movzx ebx, word [esp + 0x6c]
inc ebx
push ebx
pop eax
mov word [esp + 0x70], ax
movzx ebx, word [esp + 0x70]
push ebx
mov ebx, 0xb
cmp ebx, dword [esp]
jne 0x1002f56f
add esp, 4
jmp 0x1002f873
mov ebx, 8
cmp ebx, dword [esp]
jne 0x1002f587
movzx eax, word [esp + 0x74]
push eax
pop eax
mov word [esp + 0x70], ax
jmp 0x1002f59e
mov ebx, 4
cmp ebx, dword [esp]
jne 0x1002f59e
movzx ebx, word [esp + 0x74]
inc ebx
push ebx
pop eax
mov word [esp + 0x70], ax
pop eax
push dword [0x10042070]
call fcn.10037576
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x1002f63b
mov word [esp + 0x74], 8
movzx ebx, word [esp + 0x74]
mov eax, 4
cmp ebx, eax
jl 0x1002f5d9
movzx ebx, word [esp + 0x74]
dec ebx
push ebx
pop eax
mov word [esp + 0x78], ax
jmp 0x1002f5e6
movzx ebx, word [esp + 0x74]
inc ebx
push ebx
pop eax
mov word [esp + 0x78], ax
movzx ebx, word [esp + 0x78]
push ebx
mov ebx, 0x12
cmp ebx, dword [esp]
jne 0x1002f600
add esp, 4
jmp 0x1002f873
mov ebx, 7
cmp ebx, dword [esp]
jne 0x1002f618
movzx eax, word [esp + 0x7c]
push eax
pop eax
mov word [esp + 0x78], ax
jmp 0x1002f62f
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1002f62f
movzx ebx, word [esp + 0x7c]
inc ebx
push ebx
pop eax
mov word [esp + 0x78], ax
pop eax
push dword [0x10042070]
call fcn.10037584
movsx ebx, byte [esp + 0x1c]
and ebx, ebx
jne 0x1002f7ce
lea edx, str.responses
lea ecx, [esp + 0x7c]
call fcn.10031008
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
dec ebx
mov eax, ebx
inc eax
lea edx, [esp + 0x34]
push edx
push eax
call fcn.100376a4
mov edx, dword [esp]
push dword [edx]
push dword [esp + 0x38]
call fcn.10037692
push dword [esp + 0x34]
call fcn.10037584
mov word [esp + 0x80], 3
movzx ebx, word [esp + 0x80]
mov eax, 2
cmp ebx, eax
jl 0x1002f6b7
movzx ebx, word [esp + 0x80]
dec ebx
push ebx
pop eax
mov word [esp + 0x84], ax
jmp 0x1002f6ca
movzx ebx, word [esp + 0x80]
inc ebx
push ebx
pop eax
mov word [esp + 0x84], ax
movzx ebx, word [esp + 0x84]
push ebx
mov ebx, 0xd
cmp ebx, dword [esp]
jne 0x1002f6e7
add esp, 4
jmp 0x1002f873
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1002f705
movzx eax, word [esp + 0x88]
push eax
pop eax
mov word [esp + 0x84], ax
jmp 0x1002f722
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1002f722
movzx ebx, word [esp + 0x88]
inc ebx
push ebx
pop eax
mov word [esp + 0x84], ax
pop eax
mov eax, 1
movsx eax, al
jmp 0x1002f873
xor eax, eax
movsx eax, al
jmp 0x1002f873
push dword [esp + 0x44]
call fcn.10037d30
push dword [esp + 0x24]
call fcn.10037d30
push dword [esp + 0x30]
call fcn.10037d30
push dword [esp + 0x7c]
call fcn.10037d30
push dword [esp + 0x50]
call fcn.10037d30
push eax
push dword [esp + 0x38]
call fcn.10037589
pop eax
add esp, 0x98
pop edi
pop ebx
pop ebp
ret 8