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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49fa59
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x40abd3
mov eax, 0x190
jmp 0x40b0c0
mov ecx, dword [esp + 0xac]
lea esi, [ebp + 0xc]
push esi
push ebx
mov edx, dword [ecx]
push ebx
push 6
push edx
call dword [eax + 0x32]
add esp, 0x14
cmp eax, ebx
jne 0x40b0c0
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x88]
push edi
mov dword [esp + 0x94], eax
mov eax, dword [esi]
lea edx, [esp + 0x90]
push 1
push edx
push eax
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], 4
call dword [ecx + 0x6a]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x50]
push 1
push eax
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call dword [ecx + 0x6e]
add esp, 0x1c
test eax, eax
jne 0x40b0a6
cmp dword [esp + 0x44], 1
jne 0x40b0a6
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
mov dword [esp + 0x20], 0x11
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x80005353
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x102
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [eax + 0x62]
add esp, 0x10
test eax, eax
jne 0x40b0a6
mov edx, dword [esp + 0x18]
inc edx
push edx
call fcn.00495af5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
inc eax
push eax
call fcn.00495af5
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
inc ecx
push ecx
call fcn.00495af5
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], eax
inc edx
push edx
call fcn.00495af5
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push 4
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
call dword [eax + 0x62]
add esp, 0x20
cmp eax, ebx
jne 0x40b06b
mov dl, byte [esp + 0x4b]
mov dword [esp + 0x80], ebx
mov byte [esp + 0x7c], dl
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa8], ebx
push eax
call fcn.00495af5
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x5c], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x5c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x6c], ecx
push edx
call fcn.00495af5
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], edi
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x78], ecx
push edx
call fcn.00495af5
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x68], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x68]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x78], ecx
inc edx
push edx
call fcn.00495af5
mov edi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x64], edi
add esp, 0x10
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x54]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xb4]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [edi]
push ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x60]
push edx
mov ecx, ebp
mov byte [esp + 0x84], bl
call fcn.0040c820
mov esi, dword [edi + 0x34]
push 0x44
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
call fcn.00495af5
add esp, 4
cmp esi, ebx
mov ecx, esi
jne 0x40af1d
mov ecx, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
jne 0x40af29
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x9c], eax
cmp eax, ebx
mov byte [esp + 0xa8], 1
je 0x40afbe
mov ecx, dword [esp + 0x50]
lea esi, [eax + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x24], edx
mov cl, byte [esp + 0x78]
mov byte [eax + 0x28], cl
mov dl, byte [esp + 0x7c]
push ebx
mov ecx, esi
mov byte [esi], dl
call fcn.00401080
mov eax, dword [0x4a366c]
lea ecx, [esp + 0x7c]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00402a60
mov eax, dword [edi + 0x38]
mov edx, dword [esp + 0x14]
inc eax
push edx
mov dword [edi + 0x38], eax
call fcn.00495b1e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
push eax
call fcn.00495b1e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
push ecx
call fcn.00495b1e
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
push edx
call fcn.00495b1e
mov eax, dword [esp + 0x90]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xa8], 0xffffffff
je 0x40b033
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40b02a
cmp al, 0xff
je 0x40b02a
dec al
mov byte [ecx], al
jmp 0x40b033
push ecx
call fcn.00495b1e
add esp, 4
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x44]
push 1
push edx
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call dword [eax + 0x6e]
add esp, 0x10
test eax, eax
je 0x40ac5a
jmp 0x40b0a6
mov edx, dword [esp + 0x14]
push edx
call fcn.00495b1e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
push eax
call fcn.00495b1e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
push ecx
call fcn.00495b1e
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
push edx
call fcn.00495b1e
add esp, 0x10
mov dword [esp + 0x38], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
lea esi, [ebp + 0xc]
push ecx
call dword [eax + 0x72]
mov eax, dword [esi]
mov edx, dword [ebp + 4]
push eax
call dword [edx + 0x36]
add esp, 8
pop edi
mov ecx, dword [esp + 0x9c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 4