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

Disassembly:
push ebp
push ebx
mov edx, 0x32
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x100013ba
mov eax, dword [esp + 0xe0]
mov dword [0x100393e0], eax
mov edx, dword [esp + 0xd4]
lea ecx, [esp]
call fcn.10032000
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 4]
call fcn.10032000
mov edx, dword [esp + 0xdc]
lea ecx, [esp + 8]
call fcn.10032000
push dword [esp + 4]
lea edx, [0x10036028]
pop ecx
call fcn.100321d0
jne 0x10001428
push dword [esp + 8]
lea edx, [0x10036028]
pop ecx
call fcn.100321d0
jne 0x10001428
jmp 0x1000142f
mov eax, 1
jmp 0x10001431
xor eax, eax
and eax, eax
jne 0x10001448
push dword [esp]
lea edx, [0x10036028]
pop ecx
call fcn.100321d0
jne 0x10001448
jmp 0x1000144f
mov eax, 1
jmp 0x10001451
xor eax, eax
and eax, eax
je 0x1000145a
jmp 0x10001cf8
lea edx, str.homes
lea ecx, [esp + 0x60]
call fcn.10032008
mov edx, dword [esp]
push dword [0x100393e0]
push edx
call fcn.10033a60
mov edx, dword [esp + 8]
push edx
call fcn.10033a60
lea eax, [esp + 0x2c]
push eax
call fcn.10033ac0
push dword [esp + 0x28]
call fcn.10032610
mov ebx, eax
add ebx, ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x64], 2
movzx ebx, word [esp + 0x64]
mov eax, 5
cmp ebx, eax
jl 0x100014c1
movzx ebx, word [esp + 0x64]
dec ebx
push ebx
pop eax
mov word [esp + 0x68], ax
jmp 0x100014ce
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, 0x12
cmp ebx, dword [esp]
jne 0x100014f4
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 7
cmp ebx, dword [esp]
jne 0x1000150c
movzx eax, word [esp + 0x6c]
push eax
pop eax
mov word [esp + 0x68], ax
jmp 0x10001523
mov ebx, 2
cmp ebx, dword [esp]
jne 0x10001523
movzx ebx, word [esp + 0x6c]
inc ebx
push ebx
pop eax
mov word [esp + 0x68], ax
pop eax
lea edx, str.kingdom
lea ecx, [esp + 0x6c]
call fcn.10032008
mov ebx, dword [esp + 0x2c]
add ebx, 2
push ebx
call fcn.100334e0
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x30]
and ebx, ebx
jne 0x10001560
jmp 0x10001cf8
lea edx, [0x100371f2]
lea ecx, [esp + 0x74]
call fcn.10032008
push 0x19
push 0xffffffff
push dword [esp + 0x30]
push dword [esp + 0x3c]
call fcn.10033500
lea edx, [0x10036028]
lea ecx, [esp + 0x28]
call fcn.10032008
push dword [esp + 0x2c]
lea ebp, [esp + 0x24]
pop eax
mov word [ebp], ax
mov ebx, dword [esp + 0x2c]
add ebx, 2
push ebx
pop eax
mov word [ebp + 2], ax
push dword [esp + 0x30]
pop eax
mov dword [ebp + 4], eax
lea edx, str.campaigns
lea ecx, [esp + 0x78]
call fcn.10032008
lea ebp, [esp + 0x34]
mov dword [ebp + 0xc], 0x40
mov dword [ebp], 0x18
lea eax, [esp + 0x20]
push eax
pop eax
mov dword [ebp + 8], eax
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x18]
push eax
call fcn.10017823
mov ebx, eax
and ebx, ebx
jne 0x1000160a
mov ebx, dword [esp + 0x10]
and ebx, ebx
jle 0x1000160a
mov eax, 1
jmp 0x1000160c
xor eax, eax
and eax, eax
je 0x10001ca2
push dword [esp + 0x30]
call fcn.10033650
mov dword [esp + 0x30], 0
push dword [esp + 8]
call fcn.10032610
mov ebx, eax
add ebx, ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x7c], 1
movzx ebx, word [esp + 0x7c]
mov eax, 4
cmp ebx, eax
jl 0x1000165d
movzx ebx, word [esp + 0x7c]
dec ebx
push ebx
pop eax
mov word [esp + 0x80], ax
jmp 0x1000166d
movzx ebx, word [esp + 0x7c]
inc ebx
push ebx
pop eax
mov word [esp + 0x80], ax
movzx ebx, word [esp + 0x80]
push ebx
mov ebx, 0xc
cmp ebx, dword [esp]
jne 0x10001696
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 9
cmp ebx, dword [esp]
jne 0x100016b4
movzx eax, word [esp + 0x84]
push eax
pop eax
mov word [esp + 0x80], ax
jmp 0x100016d1
mov ebx, 5
cmp ebx, dword [esp]
jne 0x100016d1
movzx ebx, word [esp + 0x84]
inc ebx
push ebx
pop eax
mov word [esp + 0x80], ax
pop eax
mov ebx, dword [esp + 0x18]
add ebx, 2
push ebx
call fcn.100334e0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x10001c99
push 0x19
push 0xffffffff
push dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.10033500
lea edx, str.demand
lea ecx, [esp + 0x84]
call fcn.10032008
push dword [esp + 0x18]
lea ebp, [esp + 0x50]
pop eax
mov word [ebp], ax
mov ebx, dword [esp + 0x18]
add ebx, 2
push ebx
pop eax
mov word [ebp + 2], ax
push dword [esp + 0x14]
pop eax
mov dword [ebp + 4], eax
mov word [esp + 0x88], 5
movzx ebx, word [esp + 0x88]
mov eax, 2
cmp ebx, eax
jl 0x10001769
movzx ebx, word [esp + 0x88]
dec ebx
push ebx
pop eax
mov word [esp + 0x8c], ax
jmp 0x1000177c
movzx ebx, word [esp + 0x88]
inc ebx
push ebx
pop eax
mov word [esp + 0x8c], ax
movzx ebx, word [esp + 0x8c]
push ebx
mov ebx, 0xf
cmp ebx, dword [esp]
jne 0x100017a5
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 8
cmp ebx, dword [esp]
jne 0x100017c3
movzx eax, word [esp + 0x90]
push eax
pop eax
mov word [esp + 0x8c], ax
jmp 0x100017e0
mov ebx, 3
cmp ebx, dword [esp]
jne 0x100017e0
movzx ebx, word [esp + 0x90]
inc ebx
push ebx
pop eax
mov word [esp + 0x8c], ax
pop eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 2
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
call fcn.1000d60d
mov dword [esp + 0x54], eax
mov word [esp + 0x90], 4
movzx ebx, word [esp + 0x90]
mov eax, 2
cmp ebx, eax
jl 0x10001837
movzx ebx, word [esp + 0x90]
dec ebx
push ebx
pop eax
mov word [esp + 0x94], ax
jmp 0x1000184a
movzx ebx, word [esp + 0x90]
inc ebx
push ebx
pop eax
mov word [esp + 0x94], ax
movzx ebx, word [esp + 0x94]
push ebx
mov ebx, 0xf
cmp ebx, dword [esp]
jne 0x10001873
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 8
cmp ebx, dword [esp]
jne 0x10001891
movzx eax, word [esp + 0x98]
push eax
pop eax
mov word [esp + 0x94], ax
jmp 0x100018ae
mov ebx, 5
cmp ebx, dword [esp]
jne 0x100018ae
movzx ebx, word [esp + 0x98]
inc ebx
push ebx
pop eax
mov word [esp + 0x94], ax
pop eax
mov ebx, dword [esp + 0x54]
cmp ebx, 0xc0000023
je 0x100018c9
mov ebx, dword [esp + 0x54]
cmp ebx, 0x80000005
je 0x100018c9
jmp 0x100018d0
mov eax, 1
jmp 0x100018d2
xor eax, eax
and eax, eax
je 0x10001bd6
mov ebx, dword [esp + 0x1c]
add ebx, 2
push ebx
call fcn.100334e0
mov dword [esp + 0x58], eax
mov word [esp + 0x98], 8
movzx ebx, word [esp + 0x98]
mov eax, 1
cmp ebx, eax
jl 0x1000191b
movzx ebx, word [esp + 0x98]
dec ebx
push ebx
pop eax
mov word [esp + 0x9c], ax
jmp 0x1000192e
movzx ebx, word [esp + 0x98]
inc ebx
push ebx
pop eax
mov word [esp + 0x9c], ax
movzx ebx, word [esp + 0x9c]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x10001957
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 6
cmp ebx, dword [esp]
jne 0x10001975
movzx eax, word [esp + 0xa0]
push eax
pop eax
mov word [esp + 0x9c], ax
jmp 0x10001992
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10001992
movzx ebx, word [esp + 0xa0]
inc ebx
push ebx
pop eax
mov word [esp + 0x9c], ax
pop eax
cmp dword [esp + 0x58], 0
je 0x10001bd6
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x60]
push 2
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
call fcn.1000d60d
mov ebx, eax
and ebx, ebx
jne 0x100019d3
mov ebx, dword [esp + 0x5c]
and ebx, ebx
jle 0x100019d3
mov eax, 1
jmp 0x100019d5
xor eax, eax
and eax, eax
je 0x10001bb3
mov word [esp + 0xa0], 5
movzx ebx, word [esp + 0xa0]
mov eax, 5
cmp ebx, eax
jl 0x10001a0d
movzx ebx, word [esp + 0xa0]
dec ebx
push ebx
pop eax
mov word [esp + 0xa4], ax
jmp 0x10001a20
movzx ebx, word [esp + 0xa0]
inc ebx
push ebx
pop eax
mov word [esp + 0xa4], ax
movzx ebx, word [esp + 0xa4]
push ebx
mov ebx, 0x10
cmp ebx, dword [esp]
jne 0x10001a49
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 5
cmp ebx, dword [esp]
jne 0x10001a67
movzx eax, word [esp + 0xa8]
push eax
pop eax
mov word [esp + 0xa4], ax
jmp 0x10001a84
mov ebx, 2
cmp ebx, dword [esp]
jne 0x10001a84
movzx ebx, word [esp + 0xa8]
inc ebx
push ebx
pop eax
mov word [esp + 0xa4], ax
pop eax
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 4]
cmp ebx, 1
jne 0x10001b6a
mov word [esp + 0xa8], 7
movzx ebx, word [esp + 0xa8]
mov eax, 3
cmp ebx, eax
jl 0x10001ac5
movzx ebx, word [esp + 0xa8]
dec ebx
push ebx
pop eax
mov word [esp + 0xac], ax
jmp 0x10001ad8
movzx ebx, word [esp + 0xa8]
inc ebx
push ebx
pop eax
mov word [esp + 0xac], ax
movzx ebx, word [esp + 0xac]
push ebx
mov ebx, 0xa
cmp ebx, dword [esp]
jne 0x10001b01
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 7
cmp ebx, dword [esp]
jne 0x10001b1f
movzx eax, word [esp + 0xb0]
push eax
pop eax
mov word [esp + 0xac], ax
jmp 0x10001b3c
mov ebx, 2
cmp ebx, dword [esp]
jne 0x10001b3c
movzx ebx, word [esp + 0xb0]
inc ebx
push ebx
pop eax
mov word [esp + 0xac], ax
pop eax
push dword [0x100393e0]
push dword [0x100393e0]
push 0x19
push 0xffffffff
mov ebx, dword [esp + 0x68]
add ebx, 0xc
push ebx
call fcn.10033670
lea eax, [esp + 0x10]
push eax
call fcn.10033ac0
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 4]
cmp ebx, 4
jne 0x10001ba2
push dword [0x100393e0]
push dword [0x100393e0]
mov ebx, dword [esp + 0x60]
add ebx, 0xc
push ebx
pop eax
call fcn.10032190
cdq
push edx
push eax
call fcn.10032640
lea eax, [esp + 0x10]
push eax
call fcn.10033ac0
push dword [esp + 0x58]
call fcn.10033650
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x58]
and ebx, ebx
jle 0x10001bc4
push dword [esp + 0x58]
call fcn.10033650
lea edx, str.signals
lea ecx, [esp + 0xb0]
call fcn.10032008
mov word [esp + 0xb4], 1
movzx ebx, word [esp + 0xb4]
mov eax, 5
cmp ebx, eax
jl 0x10001c06
movzx ebx, word [esp + 0xb4]
dec ebx
push ebx
pop eax
mov word [esp + 0xb8], ax
jmp 0x10001c19
movzx ebx, word [esp + 0xb4]
inc ebx
push ebx
pop eax
mov word [esp + 0xb8], ax
movzx ebx, word [esp + 0xb8]
push ebx
mov ebx, 0xe
cmp ebx, dword [esp]
jne 0x10001c42
mov eax, dword [esp + 0xe4]
mov dword [0x100393e0], eax
add esp, 4
jmp 0x10001cf8
mov ebx, 5
cmp ebx, dword [esp]
jne 0x10001c60
movzx eax, word [esp + 0xbc]
push eax
pop eax
mov word [esp + 0xb8], ax
jmp 0x10001c7d
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10001c7d
movzx ebx, word [esp + 0xbc]
inc ebx
push ebx
pop eax
mov word [esp + 0xb8], ax
pop eax
push dword [esp + 0x14]
call fcn.10033650
lea edx, str.names
lea ecx, [esp + 0xbc]
call fcn.10032008
push dword [esp + 0x10]
call fcn.1003188a
lea edx, str.closes
lea ecx, [esp + 0xc0]
call fcn.10032008
mov ebx, dword [esp + 0x30]
and ebx, ebx
jle 0x10001cc5
push dword [esp + 0x30]
call fcn.10033650
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
push dword [0x100393e0]
push edx
call fcn.10033a60
pop eax
add eax, dword [0x10038c80]
jmp 0x10001d08
mov eax, dword [0x100393e0]
add eax, dword [0x10038c80]
mov word [eax], 0
push dword [esp + 0x78]
call fcn.10033a30
push dword [esp + 0x70]
call fcn.10033a30
push dword [esp]
call fcn.10033a30
push dword [esp + 0x6c]
call fcn.10033a30
push dword [esp + 0x74]
call fcn.10033a30
push dword [esp + 0xbc]
call fcn.10033a30
push dword [esp + 0xc0]
call fcn.10033a30
push dword [esp + 0x28]
call fcn.10033a30
push dword [esp + 4]
call fcn.10033a30
push dword [esp + 0x60]
call fcn.10033a30
push dword [esp + 0x84]
call fcn.10033a30
push dword [esp + 8]
call fcn.10033a30
push dword [esp + 0xb0]
call fcn.10033a30
push dword [esp + 0xc4]
call fcn.10033a30
push dword [esp + 0xc]
call fcn.10033a30
add esp, 0xc8
pop ebx
pop ebp
ret 0xc