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

Disassembly:
push 0xffffffffffffffff
push 0x4527f6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4668f0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd8]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0xd0], ebp
push 0xf
push str.System_Failure.
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
call fcn.0042d2b0
mov ecx, 0x45b404
lea edi, [esp + 0xdc]
mov byte [esp + 0xd0], 1
call fcn.0042f0d0
test al, al
je 0x40a62f
push 0xf
push str.DS_000000000000
mov ecx, edi
call fcn.0042d2b0
mov edi, dword [esp + 0xf8]
lea ecx, [esp + 0x54]
push edi
push ecx
mov dword [esp + 0x1c], ebp
call fcn.004027f0
add esp, 8
mov byte [esp + 0xd0], 2
mov ecx, dword [esp + 0xf0]
xor esi, esi
cmp ecx, ebp
je 0x40a6a5
and edi, 0x3ff
cmp esi, ecx
jbe 0x40a673
call fcn.00435bca
mov ecx, dword [esp + 0xf0]
cmp dword [esp + 0xf4], 0x10
mov eax, dword [esp + 0xe0]
jae 0x40a68b
lea eax, [esp + 0xe0]
movsx edx, byte [eax + esi]
add edx, esi
lea eax, [edi + edx*2]
mov edx, dword [esp + 0x14]
inc esi
lea eax, [edx + eax + 0xd]
mov dword [esp + 0x14], eax
cmp esi, ecx
jne 0x40a665
mov eax, dword [esp + 0x4c]
xor esi, esi
xor ebx, ebx
cmp eax, ebp
je 0x40a769
lea ebp, [esi + 0x10]
cmp esi, eax
jbe 0x40a6c8
call fcn.00435bca
mov ecx, dword [esp + 0xf0]
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40a6d6
lea edi, [esp + 0x3c]
cmp ebx, ecx
jbe 0x40a6df
call fcn.00435bca
mov eax, dword [esp + 0xe0]
cmp dword [esp + 0xf4], ebp
jae 0x40a6f6
lea eax, [esp + 0xe0]
mov cl, byte [eax + ebx]
add cl, byte [esp + 0x14]
and cl, 0x3f
add byte [edi + esi], cl
cmp esi, dword [esp + 0x68]
ja 0x40a743
cmp esi, dword [esp + 0x4c]
jbe 0x40a714
call fcn.00435bca
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40a722
lea edi, [esp + 0x3c]
cmp esi, dword [esp + 0x68]
jbe 0x40a72d
call fcn.00435bca
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebp
jae 0x40a73b
lea eax, [esp + 0x58]
mov dl, 0x30
sub dl, byte [eax + esi]
add byte [edi + esi], dl
mov ecx, dword [esp + 0xf0]
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x40a755
xor ebx, ebx
jmp 0x40a756
inc ebx
mov eax, dword [esp + 0x4c]
inc dword [esp + 0x14]
inc esi
cmp esi, eax
jne 0x40a6ba
xor ebp, ebp
xor esi, esi
cmp eax, ebp
je 0x40a79c
lea edi, [esi + 0x10]
cmp esi, eax
jbe 0x40a77b
call fcn.00435bca
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x40a789
lea eax, [esp + 0x3c]
mov cl, byte [esp + 0xf8]
sub byte [eax + esi], cl
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jne 0x40a774
xor esi, esi
cmp eax, ebp
je 0x40a7eb
cmp esi, eax
jbe 0x40a7ab
call fcn.00435bca
cmp dword [esp + 0x50], 0x10
mov edi, dword [esp + 0x3c]
jae 0x40a7ba
lea edi, [esp + 0x3c]
cmp esi, dword [esp + 0x68]
jbe 0x40a7c5
call fcn.00435bca
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40a7d4
lea eax, [esp + 0x58]
mov dl, 0x30
sub dl, byte [eax + esi]
add byte [edi + esi], dl
cmp esi, dword [esp + 0x68]
jae 0x40a7eb
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jne 0x40a7a4
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.004027f0
add esp, 8
mov byte [esp + 0xd0], 3
mov eax, dword [esp + 0xa0]
xor esi, esi
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x40a888
cmp esi, eax
jbe 0x40a825
call fcn.00435bca
cmp dword [esp + 0xa4], 0x10
mov eax, dword [esp + 0x90]
jae 0x40a83d
lea eax, [esp + 0x90]
movsx ebx, byte [eax + esi]
sub ebx, 0x30
cmp ebx, dword [esp + 0x4c]
jbe 0x40a84f
call fcn.00435bca
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x40a85e
lea eax, [esp + 0x3c]
sub byte [eax + ebx], bl
mov edx, dword [esp + 0x14]
lea eax, [edx + esi*2]
add eax, esi
lea ebx, [eax + ebx*2]
mov dword [esp + 0x14], ebx
cmp esi, ebp
jne 0x40a87c
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xa0]
inc esi
cmp esi, eax
jne 0x40a81e
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, ebp
je 0x40a8be
mov bl, byte [esp + 0x14]
add bl, bl
lea edi, [esi + 0x10]
cmp esi, eax
jbe 0x40a8a4
call fcn.00435bca
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x40a8b2
lea eax, [esp + 0x3c]
sub byte [eax + esi], bl
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jne 0x40a89d
push ebp
push 0x45b404
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebp
mov byte [esp + 0xb4], 0
call fcn.0042d2b0
push 5
mov byte [esp + 0xd4], 4
call fcn.00432f0b
add esp, 4
xor ebx, ebx
mov edi, eax
cmp dword [esp + 0x4c], ebp
je 0x40aa1e
lea ebx, [ebx]
mov byte [edi], 0
mov byte [edi + 1], 0
mov byte [edi + 2], 0
mov byte [edi + 3], 0
mov byte [edi + 4], 0
mov byte [edi + 5], 0
cmp ebx, dword [esp + 0x4c]
jbe 0x40a932
call fcn.00435bca
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x40a941
lea eax, [esp + 0x3c]
movsx eax, byte [eax + ebx]
cmp eax, ebp
jge 0x40a94c
sub eax, 0xffffff80
push 0x10
push edi
push eax
call fcn.004505cb
mov eax, edi
add esp, 0xc
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a974
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x78]
call fcn.0042d2b0
mov byte [esp + 0xd0], 5
cmp dword [esp + 0x84], 2
jne 0x40a9df
push 1
mov ecx, 1
lea esi, [esp + 0x20]
lea edx, [esp + 0x74]
call fcn.0042b6b0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xdc], 6
call fcn.0042bf10
mov byte [esp + 0xd0], 5
cmp dword [esp + 0x34], 0x10
jb 0x40a9df
mov edx, dword [esp + 0x20]
push edx
call fcn.00434321
add esp, 4
push ebp
lea eax, [esp + 0x74]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xb0]
call fcn.0042d1c0
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x88], 0x10
jb 0x40aa13
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00434321
add esp, 4
inc ebx
cmp ebx, dword [esp + 0x4c]
jne 0x40a910
lea edx, [esp + 0x70]
push edx
lea edi, [esp + 0xac]
call fcn.0040a340
add esp, 4
mov esi, dword [esp + 0x18]
push 0xa
xor ecx, ecx
mov edx, eax
mov byte [esp + 0xd4], 7
call fcn.0042b6b0
mov edi, 0x10
cmp dword [esp + 0x88], edi
jb 0x40aa64
mov eax, dword [esp + 0x74]
push eax
call fcn.00434321
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
cmp dword [esp + 0xc0], edi
jb 0x40aa95
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00434321
add esp, 4
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], ebp
mov byte [esp + 0xac], 0
cmp dword [esp + 0xa4], edi
jb 0x40aac4
mov edx, dword [esp + 0x90]
push edx
call fcn.00434321
add esp, 4
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
cmp dword [esp + 0x6c], edi
jb 0x40aaed
mov eax, dword [esp + 0x58]
push eax
call fcn.00434321
add esp, 4
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
cmp dword [esp + 0x50], edi
jb 0x40ab0d
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00434321
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
cmp dword [esp + 0xf4], edi
jb 0x40ab33
mov edx, dword [esp + 0xe0]
push edx
call fcn.00434321
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0043432c
add esp, 0xc0
ret