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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c084f
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x4e5b00]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push 0x4c9f98
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], ebx
call fcn.00402ad0
push 0x4c9f98
lea ecx, [esp + 0x20]
mov dword [esp + 0x13c], ebx
call fcn.00402ad0
push 0x4c9f98
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 1
call fcn.00402ad0
push esi
lea ecx, [esp + 0x18]
push 0x4cb8e0
push ecx
mov byte [esp + 0x144], 2
call fcn.00409200
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
lea esi, [esp + 0x1c]
call fcn.0040ef90
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00413570
add esp, 8
test al, al
je 0x41412c
push ebx
lea ecx, [esp + 0x40]
call fcn.00428ad0
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x13c], 3
call fcn.00428ad0
lea ecx, [esp + 0x94]
mov byte [esp + 0x138], 4
call fcn.0042cff0
mov byte [esp + 0x138], 5
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x413c21
push ebx
mov ecx, esi
call fcn.00401ee0
mov edx, dword [esp + 0x10]
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413c38
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x64]
call fcn.00401910
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x144], 6
call fcn.0042d080
test al, al
jne 0x413d45
cmp dword [esp + 0x74], 0x10
jb 0x413c88
mov edx, dword [esp + 0x60]
push edx
call fcn.004419ee
add esp, 4
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], 0
lea edi, [esp + 0x94]
call fcn.004141d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 3
call fcn.00429010
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 2
call fcn.00429010
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4141ab
lea ecx, [esp + 0x3c]
call fcn.00429a10
test al, al
je 0x413dc2
cmp dword [esp + 0x74], 0x10
jb 0x413d66
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004419ee
add esp, 4
mov dword [esp + 0x74], edi
lea edi, [esp + 0x94]
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], 0
call fcn.004141d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 3
call fcn.00429010
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 2
call fcn.00429010
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413cdf
push str.Answer
lea ecx, [esp + 0x40]
call fcn.00429840
mov ecx, eax
call fcn.00429a10
test al, al
je 0x413de9
lea ecx, [esp + 0x5c]
call fcn.00401750
jmp 0x413c95
push str.Answer
lea ecx, [esp + 0x40]
call fcn.00429840
mov ecx, eax
call fcn.00429220
cmp eax, 6
je 0x413e5c
lea ecx, [esp + 0x5c]
call fcn.00401750
lea edi, [esp + 0x94]
call fcn.004141d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 3
call fcn.00429010
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 2
call fcn.00429010
lea ecx, [esp + 0x10]
call fcn.004020b0
lea ecx, [esp + 0x1c]
call fcn.004020b0
lea ecx, [esp + 0x14]
call fcn.004020b0
xor eax, eax
jmp 0x4141ab
push str.Answer
lea ecx, [esp + 0x40]
call fcn.00429840
push eax
lea ecx, [esp + 0x50]
call fcn.00429120
lea ecx, [esp + 0x4c]
call fcn.004295c0
mov edi, eax
cmp edi, ebx
jle 0x413e03
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x413faf
cmp edi, ebx
jle 0x4140f5
mov bl, 7
jmp 0x413ea0
push esi
lea ecx, [esp + 0x50]
call fcn.00429670
push eax
lea ecx, [esp + 0x28]
call fcn.00428d70
push str.type
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], bl
call fcn.00429840
mov ecx, eax
call fcn.00429a10
test al, al
jne 0x413f21
push str.type
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.00429220
cmp eax, 1
jne 0x413f21
push str.type
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.004293e0
cmp eax, 1
jne 0x413f21
push str.data
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.00429a10
test al, al
je 0x413f40
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 6
call fcn.00429010
inc esi
cmp esi, edi
jl 0x413ea0
jmp 0x4140f5
lea ecx, [esp + 0x78]
push ecx
push str.data
lea ecx, [esp + 0x2c]
call fcn.00429840
mov ecx, eax
call fcn.00429240
mov byte [esp + 0x138], 8
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x413f74
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402ad0
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x13c], 9
call fcn.00415e10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x413fa0
jmp 0x4140ca
cmp edi, ebx
jle 0x4140f5
mov bl, 0xa
lea esp, [esp]
push esi
lea ecx, [esp + 0x50]
call fcn.00429670
push eax
lea ecx, [esp + 0x28]
call fcn.00428d70
push str.type
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], bl
call fcn.00429840
mov ecx, eax
call fcn.00429a10
test al, al
jne 0x414041
push str.type
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.00429220
cmp eax, 1
jne 0x414041
push str.type
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.004293e0
cmp eax, 0x10
jne 0x414041
push str.data
lea ecx, [esp + 0x28]
call fcn.00429840
mov ecx, eax
call fcn.00429a10
test al, al
je 0x414060
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 6
call fcn.00429010
inc esi
cmp esi, edi
jl 0x413fc0
jmp 0x4140f5
lea eax, [esp + 0x78]
push eax
push str.data
lea ecx, [esp + 0x2c]
call fcn.00429840
mov ecx, eax
call fcn.00429240
mov byte [esp + 0x138], 0xb
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x414094
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402ad0
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x13c], 0xc
call fcn.00415e10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4140c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 1
call fcn.004020b0
lea ecx, [esp + 0x78]
call fcn.00401750
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 6
call fcn.00429010
lea ecx, [esp + 0x5c]
call fcn.00401750
lea edi, [esp + 0x94]
call fcn.004141d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x138], 3
call fcn.00429010
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 2
call fcn.00429010
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41417c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret