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

Disassembly:
sub esp, 0x158
push ebp
push 0x140
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x20], 0
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x180]
mov ecx, dword [ebp]
add esp, 0xc
test byte [ecx], 1
jne 0x1001822c
xor eax, eax
pop ebp
add esp, 0x158
ret
push ebx
push esi
push edi
mov edi, dword [esp + 0x184]
mov eax, dword [edi]
lea edx, [eax + eax*4 + 5]
add eax, 2
mov dword [edi], eax
mov eax, dword [esp + 0x174]
lea ebx, [edi + edx*4 + 4]
push eax
mov dword [esp + 0x1c], ebx
call fcn.10010070
mov ecx, dword [esp + 0x180]
push ecx
mov esi, eax
call fcn.10010070
add esp, 8
test esi, esi
jne 0x1001828b
test eax, eax
jne 0x1001828b
push 1
push ebx
call fcn.10010400
add esp, 8
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x158
ret
cmp esi, eax
mov dword [esp + 0x24], esi
jg 0x10018297
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x188]
test eax, eax
je 0x100182a8
mov dword [esp + 0x10], eax
jmp 0x100182cc
call fcn.100181a0
test eax, eax
mov dword [esp + 0x10], eax
je 0x10018630
push edi
push ebp
push eax
call fcn.10019bb0
add esp, 0xc
test eax, eax
je 0x1001861f
lea edx, [esp + 0x28]
push edx
call fcn.10010120
lea eax, [esp + 0x90]
push eax
call fcn.10010120
lea ecx, [esp + 0x44]
push ecx
call fcn.10010120
lea edx, [esp + 0x84]
push edx
call fcn.10010120
mov esi, dword [esp + 0x180]
push ebp
push esi
call fcn.100105c0
add esp, 0x18
test eax, eax
jl 0x10018328
push edi
push ebp
lea eax, [esp + 0x80]
push esi
push eax
call fcn.10010040
add esp, 0x10
lea ebp, [esp + 0x78]
jmp 0x1001832a
mov ebp, esi
mov esi, dword [esp + 0x180]
mov ebx, dword [esp + 0x178]
push esi
push ebx
call fcn.100105c0
add esp, 8
test eax, eax
jl 0x1001835a
push edi
push esi
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.10010040
add esp, 0x10
lea ebx, [esp + 0x3c]
mov eax, dword [esp + 0x10]
push edi
push eax
lea esi, [eax + 0xc]
push esi
lea edx, [esp + 0x84]
push ebp
push edx
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
mov ebp, dword [esp + 0x10]
push edi
push ebp
push esi
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
push edi
push ebp
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
mov dword [esp + 0x14], 0
lea ebp, [esp + 0x28]
lea ecx, [ecx]
cmp dword [esp + 0x14], 2
jl 0x1001842c
push ebp
call fcn.10010120
lea esi, [ebp + 0x14]
push esi
call fcn.10010120
mov ecx, dword [esp + 0x18]
push edi
push ecx
lea ebx, [ebp - 0x3c]
lea edx, [ebx - 0x14]
push edx
lea eax, [esp + 0x8c]
push eax
push ebp
call fcn.10017dd0
add esp, 0x1c
test eax, eax
je 0x10018615
mov ecx, dword [esp + 0x10]
push edi
push ecx
push ebx
lea edx, [esp + 0x84]
push edx
push esi
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
mov ebx, 2
lea esi, [ebp + 0x28]
push esi
call fcn.10010120
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi - 0x14]
push edx
push esi
call fcn.10017dd0
add esp, 0x18
test eax, eax
je 0x10018615
add ebx, 1
add esi, 0x14
cmp ebx, 4
jl 0x10018434
mov eax, dword [esp + 0x14]
add eax, 1
add ebp, 0x50
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x100183d0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push edi
push eax
add eax, 0xc
add esi, 0xffffffff
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], esi
call fcn.10010060
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
jmp 0x100184c4
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x174]
push esi
push ecx
call fcn.10010730
mov edx, dword [esp + 0x184]
push esi
push edx
mov ebx, eax
call fcn.10010730
add esp, 0x10
test ebx, ebx
mov ebp, eax
jne 0x10018520
test ebp, ebp
jne 0x10018520
cmp dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x18]
jne 0x10018512
mov eax, dword [esp + 0x10]
push edi
push eax
push ebx
push ebx
push ebx
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x10018615
sub esi, 1
mov dword [esp + 0x14], esi
jns 0x100184c4
jmp 0x100185ed
mov edi, 1
add esi, 0xffffffff
test esi, esi
jl 0x10018565
mov ecx, dword [esp + 0x174]
push esi
push ecx
call fcn.10010730
lea edx, [ebx + ebx]
or eax, edx
mov ebx, eax
mov eax, dword [esp + 0x184]
push esi
push eax
call fcn.10010730
lea ecx, [ebp + ebp]
or eax, ecx
add edi, 1
add esp, 0x10
sub esi, 1
cmp edi, 2
mov ebp, eax
jl 0x10018528
cmp dword [esp + 0x1c], 0
jne 0x1001859d
xor esi, esi
test edi, edi
jle 0x1001859d
mov edx, dword [esp + 0x184]
mov eax, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
push eax
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x1001860e
add esi, 1
cmp esi, edi
jl 0x10018572
test ebx, ebx
jne 0x100185a5
test ebp, ebp
je 0x100185d0
mov ecx, dword [esp + 0x184]
mov edx, dword [esp + 0x10]
push ecx
lea ebx, [ebp + ebx*4]
push edx
lea eax, [ebx + ebx*4]
lea ecx, [esp + eax*4 + 0x30]
mov eax, dword [esp + 0x20]
push ecx
push eax
push eax
call fcn.10017dd0
add esp, 0x14
test eax, eax
je 0x1001860e
sub dword [esp + 0x14], edi
mov edi, dword [esp + 0x184]
mov dword [esp + 0x1c], 0
jns 0x100184c0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x16c]
push edi
push edx
push ebx
push eax
call fcn.10017f80
add esp, 0x10
mov dword [esp + 0x20], 1
jmp 0x10018615
mov edi, dword [esp + 0x184]
cmp dword [esp + 0x188], 0
jne 0x10018630
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10018630
push eax
call fcn.10018160
add esp, 4
add dword [edi], 0xfffffffe
lea esi, [esp + 0x28]
mov ebx, 4
lea esp, [esp]
mov edi, 4
push esi
call fcn.100107f0
add esp, 4
add esi, 0x14
sub edi, 1
jne 0x10018645
sub ebx, 1
jne 0x10018640
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x158
ret