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

Disassembly:
push 0xffffffffffffffff
push 0x470f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x44]
call fcn.0044e5b0
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18c], ebx
call fcn.0044e5b0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
or ebp, 0xffffffff
mov edi, 0x4930f8
mov ecx, ebp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov dword [esp + 0x48], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x19c], 1
push ecx
push 0x4930f8
mov ecx, edx
call fcn.00413680
push ebx
lea ecx, [esp + 0x38]
call fcn.004565a0
mov byte [esp + 0x18c], 2
call fcn.0045d440
test al, al
je 0x40ab9b
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x19c], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x486a0c
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x19c], 2
call fcn.004570c0
jmp 0x40ad23
push 0xff
lea ecx, [esp + 0x88]
push 0x48699c
push ecx
call fcn.00467c1a
mov al, byte [esp + 0x1f]
push ecx
mov edx, esp
lea edi, [esp + 0x94]
mov ecx, ebp
mov dword [esp + 0x48], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x98]
push ecx
mov ecx, edx
call fcn.00413680
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push 0x486928
mov byte [esp + 0x1b4], 4
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
push 0x486a1c
mov byte [esp + 0x1c4], 5
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x5b]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
push 0x4930f8
mov byte [esp + 0x1d4], 6
call fcn.00412fa0
sub esp, 0x10
mov byte [esp + 0x1dc], 7
mov esi, esp
mov dword [esp + 0xa0], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
sub esp, 8
mov byte [esp + 0x1ec], 8
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea eax, [esp + 0xd0]
mov byte [esp + 0x1ec], 2
push eax
mov ecx, 0x4937b8
call fcn.004572d0
mov edx, dword [0x47814c]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x28], cx
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x198], 9
call fcn.00413260
mov eax, dword [esp + 0x78]
mov byte [esp + 0x18c], 2
cmp eax, ebx
je 0x40ad14
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ad0b
cmp al, 0xff
je 0x40ad0b
dec al
mov byte [ecx], al
jmp 0x40ad14
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00452fc0
cmp ax, 2
jne 0x40ad71
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40ad48
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ad3f
cmp al, 0xff
je 0x40ad3f
dec al
mov byte [ecx], al
jmp 0x40ad48
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x18c], 0
call fcn.0044e6f0
mov dword [esp + 0x18c], ebp
jmp 0x40b581
lea eax, [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
call fcn.004566e0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40ad8b
mov eax, 0x478288
mov edi, eax
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40add5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40adcc
cmp al, 0xff
je 0x40adcc
dec al
mov byte [ecx], al
jmp 0x40add5
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x84]
push ecx
call fcn.00467d6e
add esp, 4
mov byte [esp + 0x1c], al
mov dword [esp + 0x38], ebp
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x486b48
call fcn.0044e650
push esi
call fcn.0045ad10
mov ecx, dword [0x4937c4]
add esp, 8
call fcn.0045c130
xor ebx, ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x486a68
call fcn.0044e650
mov ecx, dword [0x4937c4]
call fcn.0045c330
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x486b40
call fcn.0044e650
mov ecx, dword [0x4937c4]
call fcn.0045c330
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x486b38
call fcn.0044e650
mov ecx, dword [0x4937c4]
call fcn.0045c330
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x486b30
call fcn.0044e650
mov ecx, dword [0x4937c4]
call fcn.0045c330
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x486a38
call fcn.0044e650
mov ecx, dword [0x4937c4]
call fcn.0045c330
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x84]
and ebp, 0xff
push ebp
push 0x48699c
push edx
call fcn.00467c1a
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x486580
call fcn.0044e650
sub esp, 0x10
lea eax, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x64], esp
mov byte [esp + 0x1a0], 0xa
push eax
lea edx, [esp + 0x9c]
push edx
call fcn.00412fa0
push ecx
mov byte [esp + 0x1a4], 0xb
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x4869fc
call fcn.0044e650
mov ecx, dword [0x4937c4]
mov byte [esp + 0x1a4], 2
call fcn.0045c520
mov eax, dword [esp + 0x38]
cmp ax, bx
jge 0x40af71
mov edi, str.____
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40af8a
movsx ecx, ax
push ecx
lea edx, [esp + 0x88]
push 0x48699c
push edx
call fcn.00467c1a
add esp, 0xc
push ecx
or edi, 0xffffffff
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x486580
call fcn.0044e650
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x64], esp
lea edx, [esp + 0x98]
push eax
push edx
mov byte [esp + 0x1a8], 0xc
call fcn.00412fa0
push ecx
mov byte [esp + 0x1a4], 0xd
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x486b20
call fcn.0044e650
mov ecx, dword [0x4937c4]
mov byte [esp + 0x1a4], 2
call fcn.0045c520
mov ecx, dword [0x4937c4]
call fcn.0045c730
push 0xa
mov esi, eax
call fcn.0044b4f0
add esp, 4
cmp si, 4
je 0x40b538
movsx eax, si
cmp eax, 3
ja case.default.0x40b01e
jmp dword [eax*4 + 0x40b5a8]
push 0xff
lea eax, [esp + 0x88]
push 0x48699c
push eax
call fcn.00467c1a
push ecx
mov cl, byte [esp + 0x2b]
mov ebp, esp
xor eax, eax
lea edi, [esp + 0x94]
mov dword [esp + 0x24], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00413860
test al, al
je 0x40b09a
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
push 0x486928
mov byte [esp + 0x1b4], 0xe
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x8b]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push 0x486a1c
mov byte [esp + 0x1c4], 0xf
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x8f]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
push 0x4930f8
mov byte [esp + 0x1d4], 0x10
call fcn.00412fa0
sub esp, 0x10
mov byte [esp + 0x1dc], 0x11
mov esi, esp
mov dword [esp + 0x98], esp
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push 6
push 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
sub esp, 8
mov byte [esp + 0x1ec], 0x12
mov esi, esp
mov dword [esp + 0xa0], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push 6
push 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ec], 2
push ecx
mov ecx, 0x4937b8
call fcn.004572d0
mov dx, word [eax]
mov edi, dword [0x47814c]
lea esi, [eax + 4]
mov word [esp + 0x24], dx
mov byte [esp + 0x18c], 0x13
mov eax, dword [esi + 8]
mov ebp, eax
cmp edi, ebp
jae 0x40b1a7
mov ebp, edi
lea ecx, [esp + 0x28]
cmp ecx, esi
jne 0x40b21a
cmp dword [esp + 0x30], ebp
jae 0x40b1ba
call fcn.00467640
lea ecx, [esp + 0x28]
call fcn.00414790
mov eax, dword [esp + 0x30]
sub eax, ebp
cmp eax, edi
jae 0x40b1cf
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jbe 0x40b20a
mov edx, dword [esp + 0x2c]
sub eax, edi
add ebp, edx
push eax
lea ecx, [edi + ebp]
push ecx
push ebp
call fcn.00467d80
mov esi, dword [esp + 0x3c]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x28]
push ebx
push esi
call fcn.00413860
test al, al
je 0x40b20a
push esi
lea ecx, [esp + 0x2c]
call fcn.00413840
push ebx
push ebx
lea ecx, [esp + 0x30]
call fcn.00413720
jmp 0x40b2a5
xor ebx, ebx
cmp ebp, ebx
jbe 0x40b269
cmp ebp, eax
jne 0x40b269
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x40b230
mov eax, 0x478288
cmp byte [eax - 1], 0xfe
jae 0x40b269
push 1
lea ecx, [esp + 0x2c]
call fcn.00413460
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x40b24d
mov eax, 0x478288
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x34], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x40b2a5
push 1
push ebp
lea ecx, [esp + 0x30]
call fcn.00413860
test al, al
je 0x40b2a5
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x40b285
mov esi, 0x478288
mov edi, dword [esp + 0x2c]
mov ecx, ebp
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x78]
mov byte [esp + 0x18c], 2
cmp eax, ebx
je 0x40b2d2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b2c9
cmp al, 0xff
je 0x40b2c9
dec al
mov byte [ecx], al
jmp 0x40b2d2
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.00452fc0
cmp ax, 1
jne case.default.0x40b01e
lea edx, [esp + 0x60]
lea ecx, [esp + 0x24]
push edx
call fcn.004566e0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x40b310
mov edi, 0x478288
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x84]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40b359
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b350
cmp al, 0xff
je 0x40b350
dec al
mov byte [ecx], al
jmp 0x40b359
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x64], ebx
push ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.00467d6e
add esp, 4
mov byte [esp + 0x1c], al
jmp case.default.0x40b01e
inc ebp
cmp ebp, 0xff
jle 0x40b3cf
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x19c], 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4869ec
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x19c], 2
call fcn.004570c0
jmp case.default.0x40b01e
mov al, byte [esp + 0x1c]
mov dword [esp + 0x38], edi
inc al
mov byte [esp + 0x1c], al
jmp case.default.0x40b01e
mov al, byte [esp + 0x1c]
test al, al
jne 0x40b432
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x19c], 0x15
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4869ec
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x19c], 2
call fcn.004570c0
jmp case.default.0x40b01e
mov al, byte [esp + 0x1c]
mov dword [esp + 0x38], edi
dec al
mov byte [esp + 0x1c], al
jmp case.default.0x40b01e
movsx ax, byte [0x484158]
mov dl, byte [esp + 0x1c]
push eax
push 0x484159
lea ecx, [esp + 0x4c]
mov byte [0x48415c], dl
call fcn.0044ea30
lea ecx, [esp + 0x20]
lea edx, [esp + 0x44]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0044e5c0
call fcn.004291b0
add esp, 8
cmp ax, bx
jle 0x40b4f5
push 2
lea ecx, [esp + 0x24]
call fcn.0044e8c0
cmp al, 0xfb
jne 0x40b4c4
push 3
lea ecx, [esp + 0x24]
call fcn.0044e8c0
movzx si, al
push 4
lea ecx, [esp + 0x24]
shl esi, 8
call fcn.0044e8c0
movzx ax, al
add esi, eax
mov dword [esp + 0x38], esi
jmp case.default.0x40b01e
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x19c], 0x17
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x486a0c
jmp 0x40b3b3
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x19c], 0x16
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x19c], 2
call fcn.004570c0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40b55d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b554
cmp al, 0xff
je 0x40b554
dec al
mov byte [ecx], al
jmp 0x40b55d
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x18c], 0
call fcn.0044e6f0
mov dword [esp + 0x18c], edi
lea ecx, [esp + 0x44]
call fcn.0044e6f0
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret