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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0xcc], eax
mov eax, dword [ebp + 0x150]
test ecx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x154]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x158]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x15c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x140]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x144]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x148]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14c]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x3f]
cmovns eax, ecx
sar eax, 6
mov dword [esp + 0x68], eax
je 0x409329
mov ebx, dword [ebp + 0x188]
mov dword [esp + 0x50], eax
lea esi, [ebp + 0x284]
mov edi, edx
lea eax, [esp + 0x88]
mov dword [esp + 0x54], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], eax
lea esi, [esi]
add dword [esp + 0x28], 4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
xor esi, dword [ebp + 0x4c]
tzcnt eax, eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
xor ecx, dword [ebp + 0x40]
xor ebx, dword [ebp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
xor eax, dword [ebp + 0x48]
mov edx, eax
mov eax, esi
mov esi, dword [edi + 8]
mov dword [esp + 0x38], edx
xor esi, edx
mov edx, dword [edi + 4]
mov dword [esp + 0x30], esi
mov esi, dword [edi + 0xc]
xor edx, ebx
xor esi, eax
xor eax, dword [edi + 0x1c]
xor eax, dword [ebp + 0x5c]
mov dword [esp + 0x34], esi
mov esi, dword [edi]
xor esi, ecx
mov dword [esp + 0x3c], esi
mov esi, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x34]
xor edx, dword [edi + 0x18]
xor edx, dword [ebp + 0x58]
mov dword [esp + 0x94], esi
xor ecx, dword [edi + 0x10]
xor ebx, dword [edi + 0x14]
mov dword [esp + 0xa0], edx
xor ebx, dword [ebp + 0x54]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
xor edx, dword [ebp + 0x54]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], ebx
mov ebx, dword [edi + 0x28]
xor eax, dword [ebp + 0x58]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x2c]
mov esi, dword [esp + 0x20]
xor esi, dword [ebp + 0x5c]
xor ebx, eax
xor ecx, dword [ebp + 0x50]
xor edx, esi
mov dword [esp + 0x1c], ebx
mov ebx, edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
xor ecx, dword [ebp + 0x50]
xor edx, ecx
shl ebx, 4
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x24]
add ebx, ebp
xor ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x20]
xor ecx, dword [ebx + 0x40]
mov dword [esp + 0xb0], edx
mov dword [esp + 0x24], ecx
xor eax, dword [ebx + 0x48]
xor esi, dword [ebx + 0x4c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
xor edx, dword [ebx + 0x44]
xor eax, dword [edi + 0x38]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
mov edx, eax
mov eax, dword [edi + 0x3c]
xor ecx, dword [edi + 0x30]
mov dword [esp + 0xc0], edx
xor eax, esi
mov ebx, ecx
mov ecx, dword [esp + 0x18]
xor ecx, dword [edi + 0x34]
lea esi, [esp + 0xb8]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0x2c], edi
mov edi, esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x58]
nop
mov dword [esp + 4], edi
mov ebx, edi
mov dword [esp], edi
sub edi, 0x10
mov dword [esp + 8], esi
call sub.cygcrypto_1.1.dll_AES_encrypt
cmp ebp, ebx
jne 0x409210
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
xor edx, dword [esp + 0x98]
xor eax, dword [esp + 0x9c]
xor edx, dword [esp + 0xa8]
add edi, 0x40
xor edx, dword [esp + 0xb8]
xor eax, dword [esp + 0xac]
xor dword [esp + 0x40], edx
xor eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x90]
xor dword [esp + 0x44], eax
xor edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x94]
xor edx, dword [esp + 0xb0]
xor eax, dword [esp + 0xa4]
xor edx, dword [esp + 0xc0]
xor eax, dword [esp + 0xb4]
xor dword [esp + 0x48], edx
xor eax, dword [esp + 0xc4]
xor dword [esp + 0x4c], eax
mov ebp, dword [esp + 0x30]
sub dword [esp + 0x50], 1
jne 0x409080
mov ebx, dword [esp + 0x68]
mov eax, ebx
shl eax, 6
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
lea eax, [eax + ebx*4]
mov dword [ebp + 0x188], eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x150], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x154], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x158], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x15c], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x140], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x144], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x148], eax
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x14c], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x409340
mov eax, dword [esp + 0x64]
mov esi, eax
and esi, 0x3f
mov dword [esp + 0x28], esi
jne 0x40935e
mov eax, dword [esp + 0xcc]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x4096f0
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, eax
and ecx, 0x20
jne 0x409523
and eax, 0x30
lea ebx, [ebp + 0x284]
mov dword [esp + 0x2c], eax
jne 0x409606
mov ecx, dword [ebp + 0x2c]
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x78]
mov dword [esp + 0x78], 0
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x5c]
shl edi, 4
mov dword [esp + 0x30], eax
add ecx, edi
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0x28]
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004513c4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
add dword [esp + 0x2c], 1
mov byte [esp + ecx + 0x78], pe_nt_image_headers32
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x84]
xor esi, dword [esp + 0x80]
mov eax, ecx
mov ecx, dword [esp + 0x1c]
xor edx, dword [esp + 0x7c]
xor edx, dword [esp + 0x18]
xor ecx, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
xor esi, eax
lea eax, [edi + 0xd0]
lea ecx, [esp + eax]
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x78]
xor eax, dword [esp + 0x24]
mov dword [esp + edi + 0x88], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx - 0x44], edx
mov dword [esp + edi + 0x90], eax
mov dword [ecx - 0x3c], esi
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x88]
lea esi, [esi]
nop
sub esi, 1
mov dword [esp + 8], ebx
mov eax, esi
shl eax, 4
add eax, edi
mov dword [esp + 4], eax
mov dword [esp], eax
call sub.cygcrypto_1.1.dll_AES_encrypt
test esi, esi
jne 0x409460
mov eax, dword [esp + 0x2c]
cmp eax, 3
je 0x4096bf
cmp eax, 4
je 0x409693
cmp eax, 1
je 0x4094ca
cmp eax, 2
jne 0x4094f6
mov ebx, dword [esp + 0x98]
xor dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x9c]
xor dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xa0]
xor dword [esp + 0x48], ebx
mov ebx, dword [esp + 0xa4]
xor dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x88]
xor dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x8c]
xor dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x90]
xor dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x94]
xor dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x140], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x144], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x148], eax
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x14c], eax
jmp 0x409340
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
xor edx, dword [ebp + 0x48]
mov ebx, dword [esp + 0x18]
mov esi, dword [ecx + 8]
mov edi, dword [esp + 0x20]
xor edi, dword [ebp + 0x4c]
mov eax, dword [esp + 0x24]
xor esi, edx
xor eax, dword [ebp + 0x40]
xor ebx, dword [ebp + 0x44]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 0xc]
xor esi, edi
mov dword [esp + 0x1c], esi
mov esi, dword [ecx]
xor esi, eax
xor eax, dword [ebp + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x1c]
xor esi, ebx
xor ebx, dword [ebp + 0x54]
mov dword [esp + 0x94], ecx
mov ecx, eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x8c], esi
mov esi, ebx
xor eax, edx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebp + 0x5c]
mov dword [esp + 0x1c], eax
xor eax, dword [edx + 0x18]
xor ebx, edi
mov dword [esp + 0x20], ebx
xor ebx, dword [edx + 0x1c]
xor ecx, dword [edx + 0x10]
xor esi, dword [edx + 0x14]
mov dword [esp + 0xa0], eax
sub dword [esp + 0x28], 0x20
mov eax, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa4], ebx
cmp eax, 0xf
ja 0x409601
mov dword [esp + 0x2c], 2
lea ebx, [ebp + 0x284]
test eax, eax
je 0x40944c
jmp 0x40937c
mov ecx, 2
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x48]
xor dword [esp + 0x24], eax
mov eax, ecx
mov ebx, dword [ebp + 0x44]
xor dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x4c]
shl eax, 4
xor dword [esp + 0x20], edx
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x1c]
xor dword [esp + 0x18], ebx
add edx, eax
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
xor edi, dword [edx + 8]
xor esi, dword [edx]
mov dword [esp + 0x30], edi
mov edi, dword [edx + 0xc]
mov dword [esp + eax + 0x88], esi
xor edi, ebx
lea ebx, [eax + 0xd0]
add ebx, esp
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
xor ebx, dword [edx + 4]
mov dword [esi - 0x44], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + eax + 0x90], ebx
lea eax, [ecx + 1]
lea ebx, [ebp + 0x284]
mov dword [esi - 0x3c], edi
mov dword [esp + 0x2c], eax
sub dword [esp + 0x28], 0x10
je 0x40944c
jmp 0x40937c
mov esi, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
xor dword [esp + 0x40], esi
mov esi, dword [esp + 0xc0]
xor dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xc4]
xor dword [esp + 0x48], esi
xor dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0xa8]
mov esi, dword [esp + 0xb0]
xor dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xac]
xor dword [esp + 0x48], esi
xor dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xb4]
xor dword [esp + 0x4c], ebx
jmp 0x40949e
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]
lea esi, [esi]