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

Disassembly:
push 0xffffffffffffffff
push 0x462188
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.0043f6d0
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18c], ebx
call fcn.0043f6d0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
or ebp, 0xffffffff
mov edi, 0x481e18
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 0x481e18
mov ecx, edx
call fcn.00413660
push ebx
lea ecx, [esp + 0x38]
call fcn.004478c0
mov byte [esp + 0x18c], 2
call fcn.0044e630
test al, al
je 0x40abab
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov byte [esp + 0x19c], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x475a0c
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x19c], 2
call fcn.004483e0
jmp 0x40ad33
push 0xff
lea ecx, [esp + 0x88]
push 0x47599c
push ecx
call fcn.00458e0a
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.00413660
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push 0x475928
mov byte [esp + 0x1b4], 4
call fcn.00412fb0
sub esp, 0x10
lea eax, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
push 0x475a1c
mov byte [esp + 0x1c4], 5
call fcn.00412fb0
sub esp, 0x10
lea edx, [esp + 0x5b]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
push 0x481e18
mov byte [esp + 0x1d4], 6
call fcn.00412fb0
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 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
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 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
add esp, 8
lea eax, [esp + 0xd0]
mov byte [esp + 0x1ec], 2
push eax
mov ecx, 0x4824d0
call fcn.004485f0
mov edx, dword [0x46814c]
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.00413240
mov eax, dword [esp + 0x78]
mov byte [esp + 0x18c], 2
cmp eax, ebx
je 0x40ad24
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ad1b
cmp al, 0xff
je 0x40ad1b
dec al
mov byte [ecx], al
jmp 0x40ad24
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004440e0
cmp ax, 2
jne 0x40ad81
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40ad58
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ad4f
cmp al, 0xff
je 0x40ad4f
dec al
mov byte [ecx], al
jmp 0x40ad58
push ecx
call fcn.00458510
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.0043f810
mov dword [esp + 0x18c], ebp
jmp 0x40b591
lea eax, [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
call fcn.00447a00
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40ad9b
mov eax, 0x468288
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 0x40ade5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40addc
cmp al, 0xff
je 0x40addc
dec al
mov byte [ecx], al
jmp 0x40ade5
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x84]
push ecx
call fcn.00458f5e
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 0x475b48
call fcn.0043f770
push esi
call fcn.0044c070
mov ecx, dword [0x4824dc]
add esp, 8
call fcn.0044d490
xor ebx, ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x475a68
call fcn.0043f770
mov ecx, dword [0x4824dc]
call fcn.0044d690
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x475b40
call fcn.0043f770
mov ecx, dword [0x4824dc]
call fcn.0044d690
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x475b38
call fcn.0043f770
mov ecx, dword [0x4824dc]
call fcn.0044d690
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x475b30
call fcn.0043f770
mov ecx, dword [0x4824dc]
call fcn.0044d690
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x475a38
call fcn.0043f770
mov ecx, dword [0x4824dc]
call fcn.0044d690
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x84]
and ebp, 0xff
push ebp
push 0x47599c
push edx
call fcn.00458e0a
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x475580
call fcn.0043f770
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.00412fb0
push ecx
mov byte [esp + 0x1a4], 0xb
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x4759fc
call fcn.0043f770
mov ecx, dword [0x4824dc]
mov byte [esp + 0x1a4], 2
call fcn.0044d710
mov eax, dword [esp + 0x38]
cmp ax, bx
jge 0x40af81
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 0x40af9a
movsx ecx, ax
push ecx
lea edx, [esp + 0x88]
push 0x47599c
push edx
call fcn.00458e0a
add esp, 0xc
push ecx
or edi, 0xffffffff
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x475580
call fcn.0043f770
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.00412fb0
push ecx
mov byte [esp + 0x1a4], 0xd
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x475b20
call fcn.0043f770
mov ecx, dword [0x4824dc]
mov byte [esp + 0x1a4], 2
call fcn.0044d710
mov ecx, dword [0x4824dc]
call fcn.0044d920
push 0xa
mov esi, eax
call fcn.0043cc50
add esp, 4
cmp si, 4
je 0x40b548
movsx eax, si
cmp eax, 3
ja case.default.0x40b02e
jmp dword [eax*4 + 0x40b5b8]
push 0xff
lea eax, [esp + 0x88]
push 0x47599c
push eax
call fcn.00458e0a
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.00413840
test al, al
je 0x40b0aa
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 0x475928
mov byte [esp + 0x1b4], 0xe
call fcn.00412fb0
sub esp, 0x10
lea edx, [esp + 0x8b]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push 0x475a1c
mov byte [esp + 0x1c4], 0xf
call fcn.00412fb0
sub esp, 0x10
lea eax, [esp + 0x8f]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
push 0x481e18
mov byte [esp + 0x1d4], 0x10
call fcn.00412fb0
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 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
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 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
add esp, 8
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ec], 2
push ecx
mov ecx, 0x4824d0
call fcn.004485f0
mov dx, word [eax]
mov edi, dword [0x46814c]
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 0x40b1b7
mov ebp, edi
lea ecx, [esp + 0x28]
cmp ecx, esi
jne 0x40b22a
cmp dword [esp + 0x30], ebp
jae 0x40b1ca
call fcn.00458830
lea ecx, [esp + 0x28]
call fcn.00414510
mov eax, dword [esp + 0x30]
sub eax, ebp
cmp eax, edi
jae 0x40b1df
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jbe 0x40b21a
mov edx, dword [esp + 0x2c]
sub eax, edi
add ebp, edx
push eax
lea ecx, [edi + ebp]
push ecx
push ebp
call fcn.00458f70
mov esi, dword [esp + 0x3c]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x28]
push ebx
push esi
call fcn.00413840
test al, al
je 0x40b21a
push esi
lea ecx, [esp + 0x2c]
call fcn.00413820
push ebx
push ebx
lea ecx, [esp + 0x30]
call fcn.00413700
jmp 0x40b2b5
xor ebx, ebx
cmp ebp, ebx
jbe 0x40b279
cmp ebp, eax
jne 0x40b279
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x40b240
mov eax, 0x468288
cmp byte [eax - 1], 0xfe
jae 0x40b279
push 1
lea ecx, [esp + 0x2c]
call fcn.00413440
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x40b25d
mov eax, 0x468288
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 0x40b2b5
push 1
push ebp
lea ecx, [esp + 0x30]
call fcn.00413840
test al, al
je 0x40b2b5
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x40b295
mov esi, 0x468288
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 0x40b2e2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b2d9
cmp al, 0xff
je 0x40b2d9
dec al
mov byte [ecx], al
jmp 0x40b2e2
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.004440e0
cmp ax, 1
jne case.default.0x40b02e
lea edx, [esp + 0x60]
lea ecx, [esp + 0x24]
push edx
call fcn.00447a00
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x40b320
mov edi, 0x468288
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 0x40b369
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b360
cmp al, 0xff
je 0x40b360
dec al
mov byte [ecx], al
jmp 0x40b369
push ecx
call fcn.00458510
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.00458f5e
add esp, 4
mov byte [esp + 0x1c], al
jmp case.default.0x40b02e
inc ebp
cmp ebp, 0xff
jle 0x40b3df
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x19c], 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4759ec
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x19c], 2
call fcn.004483e0
jmp case.default.0x40b02e
mov al, byte [esp + 0x1c]
mov dword [esp + 0x38], edi
inc al
mov byte [esp + 0x1c], al
jmp case.default.0x40b02e
mov al, byte [esp + 0x1c]
test al, al
jne 0x40b442
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x19c], 0x15
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4759ec
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x19c], 2
call fcn.004483e0
jmp case.default.0x40b02e
mov al, byte [esp + 0x1c]
mov dword [esp + 0x38], edi
dec al
mov byte [esp + 0x1c], al
jmp case.default.0x40b02e
movsx ax, byte [0x473158]
mov dl, byte [esp + 0x1c]
push eax
push 0x473159
lea ecx, [esp + 0x4c]
mov byte [0x47315c], dl
call fcn.0043fb50
lea ecx, [esp + 0x20]
lea edx, [esp + 0x44]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0043f6e0
call fcn.004294e0
add esp, 8
cmp ax, bx
jle 0x40b505
push 2
lea ecx, [esp + 0x24]
call fcn.0043f9e0
cmp al, 0xfb
jne 0x40b4d4
push 3
lea ecx, [esp + 0x24]
call fcn.0043f9e0
movzx si, al
push 4
lea ecx, [esp + 0x24]
shl esi, 8
call fcn.0043f9e0
movzx ax, al
add esi, eax
mov dword [esp + 0x38], esi
jmp case.default.0x40b02e
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x19c], 0x17
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x475a0c
jmp 0x40b3c3
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x19c], 0x16
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x19c], 2
call fcn.004483e0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40b56d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40b564
cmp al, 0xff
je 0x40b564
dec al
mov byte [ecx], al
jmp 0x40b56d
push ecx
call fcn.00458510
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.0043f810
mov dword [esp + 0x18c], edi
lea ecx, [esp + 0x44]
call fcn.0043f810
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