Function at 0x4099f0
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov eax, dword [esp + 0x188]
mov ecx, dword [esp + 0x184]
mov ebp, dword [esp + 0x180]
mov esi, dword [esp + 0x190]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18c]
mov ebx, dword [esp + 0x194]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x80], eax
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x15c], eax
xor eax, eax
test ecx, ecx
je 0x409b27
lea eax, [esp + 0x90]
mov edx, ebp
call fcn.00408d60
mov eax, dword [esp + 0x90]
mov dword [ebp], eax
mov eax, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x9c]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x150], 0
mov dword [ebp + 0x154], 0
mov dword [ebp + 0x158], 0
mov dword [ebp + 0x15c], 0
mov dword [ebp + 0x18c], 0
mov dword [ebp + 0x188], 0
test ebx, ebx
js 0x40a37a
mov dword [ebp + 0x140], 0
mov dword [ebp + 0x144], 0
mov dword [ebp + 0x148], 0
mov dword [ebp + 0x14c], 0
test ebx, ebx
jle 0x409b40
mov eax, dword [esp + 0x80]
mov ecx, ebx
mov edx, esi
mov dword [esp], eax
mov eax, ebp
call fcn.00408fc0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x74]
mov esi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
test edi, edi
lea eax, [edi + 0x3f]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xa8], esi
cmovns eax, edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ecx
sar eax, 6
mov dword [esp + 0xb4], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x84], eax
je 0x409f7d
mov eax, dword [ebp + 0x18c]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp + 0x284]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x78]
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
add dword [esp + 0x48], 4
mov ebx, dword [ecx + 0x40]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx + 0x44]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
xor ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov ebx, dword [ecx + 0x4c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x34], ebx
xor eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x28]
xor ebx, dword [esp + 0x2c]
xor eax, edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x108], eax
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [esp + 0x10c], eax
mov eax, dword [esi + 8]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x18]
xor eax, dword [esi + 0xc]
mov dword [esp + 0x114], eax
mov eax, dword [ecx + 0x50]
xor ebx, dword [ecx + 0x54]
xor ebp, dword [ecx + 0x58]
xor eax, edx
mov edx, dword [esp + 0x18]
xor edx, dword [ecx + 0x5c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x50], eax
xor eax, dword [esi + 0x10]
mov dword [esp + 0x118], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], ebp
xor eax, ebx
mov dword [esp + 0x11c], eax
mov eax, dword [esi + 0x18]
xor eax, ebp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esi + 0x1c]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x10]
xor eax, edx
mov edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
xor eax, ebx
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
xor eax, ebp
mov ebp, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
xor eax, edx
mov dword [esp + 0x128], eax
mov eax, dword [esi + 0x24]
xor eax, ebx
mov dword [esp + 0x12c], eax
mov eax, dword [esi + 0x28]
xor eax, ebp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 0x2c]
mov dword [esp + 0x134], eax
xor eax, eax
tzcnt eax, dword [esp + 0x48]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x40]
xor ebx, dword [eax + 0x44]
xor ebp, dword [eax + 0x48]
xor ecx, dword [eax + 0x4c]
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x3c]
xor edx, dword [esi + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
xor ebx, dword [esi + 0x34]
xor eax, ecx
xor ebp, dword [esi + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x138], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x144], eax
xor edx, dword [esi + 0x14]
mov eax, dword [esi]
xor edx, dword [esp + 0x3c]
mov dword [esp + 0x140], ebp
lea ebp, [esp + 0x138]
xor eax, dword [esi + 0x10]
xor edx, dword [esi + 0x24]
mov dword [esp + 0x13c], ebx
xor eax, dword [esp + 0x38]
xor edx, dword [esi + 0x34]
xor eax, dword [esi + 0x20]
xor eax, dword [esi + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [esp + 0x34], esi
xor edx, dword [esi + 0x1c]
xor eax, dword [esp + 0x40]
xor edx, dword [esp + 0x44]
xor eax, dword [esi + 0x28]
xor edx, dword [esi + 0x2c]
xor eax, dword [esi + 0x38]
xor edx, dword [esi + 0x3c]
mov dword [esp + 0x40], eax
mov esi, ebp
mov dword [esp + 0x44], edx
mov ebp, dword [esp + 0x70]
lea esi, [esi]
nop
mov dword [esp + 4], esi
mov ebx, esi
mov dword [esp], esi
sub esi, 0x10
mov dword [esp + 8], ebp
call sub.cygcrypto_1.1.dll_AES_encrypt
lea eax, [esp + 0x108]
cmp eax, ebx
jne 0x409de8
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
add edi, 0x40
xor edx, dword [esp + 0x110]
xor eax, dword [esp + 0x114]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [edi - 0x38], edx
xor ebx, dword [esp + 0x108]
xor ecx, dword [esp + 0x10c]
mov dword [edi - 0x34], eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov dword [edi - 0x40], ebx
xor edx, dword [esp + 0x120]
xor eax, dword [esp + 0x124]
mov dword [edi - 0x3c], ecx
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edi - 0x28], edx
xor ebx, dword [esp + 0x118]
xor ecx, dword [esp + 0x11c]
mov dword [edi - 0x24], eax
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [edi - 0x30], ebx
xor edx, dword [esp + 0x130]
mov eax, dword [esp + 0x10]
mov dword [edi - 0x2c], ecx
xor eax, dword [esp + 0x134]
mov ebx, dword [esp + 0x4c]
add esi, 0x40
xor ebx, dword [esp + 0x128]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x12c]
mov dword [edi - 0x20], ebx
mov dword [edi - 0x1c], ecx
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edi - 0x18], edx
xor ebx, dword [esp + 0x138]
xor ecx, dword [esp + 0x13c]
mov dword [edi - 0x14], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edi - 0x10], ebx
xor edx, dword [esp + 0x140]
xor eax, dword [esp + 0x144]
mov dword [edi - 0xc], ecx
mov dword [edi - 8], edx
mov dword [edi - 4], eax
sub dword [esp + 0x6c], 1
jne 0x409bf0
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov eax, edi
mov edx, dword [esp + 0x20]
shl eax, 6
add dword [esp + 0x78], eax
add eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], eax
mov dword [ebp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xb0], esi
lea eax, [eax + edi*4]
mov dword [esp + 0xb4], edx
mov dword [ebp + 0x18c], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 4], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x40a111
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
and esi, 0x3f
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x10], esi
mov edi, eax
jne 0x40a133
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor edi, dword [esp + 0x3c]
xor edi, dword [ebp + 0x34]
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, ebx
xor eax, dword [ebp + 0x38]
xor edx, dword [ebp + 0x3c]
shl ecx, 4
lea esi, [ecx + 0x160]
lea ebx, [esp + esi]
mov esi, dword [esp + 0x18]
xor esi, dword [esp + 0x38]
xor esi, dword [ebp + 0x30]
mov dword [esp + ecx + 0x108], esi
mov dword [ebx - 0x54], edi
lea edi, [ebp + 0x284]
mov dword [esp + ecx + 0x110], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x108]
mov dword [ebx - 0x4c], edx
sub eax, 1
shl eax, 4
lea esi, [ecx + eax]
lea esi, [esi]
mov dword [esp + 4], esi
mov ebx, esi
mov dword [esp], esi
sub esi, 0x10
mov dword [esp + 8], edi
call sub.cygcrypto_1.1.dll_AES_encrypt
lea eax, [esp + 0x108]
cmp eax, ebx
jne 0x40a038
mov ecx, dword [esp + 0x10]
shl ecx, 4
lea eax, [ecx + 0x160]
lea edx, [esp + eax]
mov eax, dword [esp + ecx + 0x110]
xor eax, dword [ebp + 0x148]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [edx - 0x4c]
mov ecx, dword [esp + ecx + 0x108]
mov edx, dword [edx - 0x54]
xor ebx, dword [ebp + 0x14c]
xor ecx, dword [ebp + 0x140]
xor edx, dword [ebp + 0x144]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
test eax, eax
jne 0x40a603
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x40a3e7
cmp eax, 3
je 0x40a39f
cmp eax, 1
je 0x40a42f
mov edi, dword [esp + 0x88]
test edi, edi
je 0x40a688
mov eax, dword [esp + 0xa8]
mov dword [edi], eax
mov eax, dword [esp + 0xac]
mov dword [edi + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [edi + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x15c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x40a6c5
mov eax, dword [esp + 0x74]
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x74]
and edi, 0x20
mov dword [esp + 0x24], edi
jne 0x40a47b
cmp dword [esp + 0x10], 0xf
mov dword [esp + 0x28], 0
mov edi, eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], edx
jbe 0x40a5ee
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x48]
xor eax, dword [esp + 0xb0]
mov ecx, dword [ebp + 0x4c]
shl ebx, 4
mov dword [esp + 0x1c], eax
xor ecx, dword [esp + 0xb4]
lea eax, [ebx + 0x160]
mov dword [esp + 0x2c], ecx
lea esi, [esp + eax]
mov eax, esi
mov esi, dword [ebp + 0x40]
xor esi, edx
mov edx, dword [ebp + 0x44]
mov ecx, esi
mov dword [esp + ebx + 0xc8], esi
mov esi, eax
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [eax - 0x94], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], edi
mov dword [esp + ebx + 0xd0], eax
mov dword [esi - 0x8c], edi
mov edi, dword [esp + 0x28]
add edi, dword [esp + 0x78]
mov dword [esp + 0xb0], eax
mov eax, edi
mov dword [esp + 0xa8], ecx
mov edi, edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], esi
mov dword [esp + 0xac], edx
mov esi, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
xor eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + ebx + 0x108], eax
xor esi, edi
mov eax, esi
mov esi, dword [esp + 0x30]
xor dword [esp + 0x44], ecx
xor dword [esp + 0x40], edx
mov dword [esi - 0x54], eax
mov eax, dword [esp + 0x1c]
xor eax, edx
mov dword [esp + ebx + 0x110], eax
mov eax, dword [esp + 0x2c]
xor eax, ecx
mov dword [esi - 0x4c], eax
mov eax, dword [esp + 0x28]
xor dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
xor dword [esp + 0x3c], esi
mov esi, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x10], eax
add eax, 1
shl ecx, 4
mov dword [esp + 0x20], eax
sub esi, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
test edx, edx
je 0x409fcf
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xb8]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], ecx
add eax, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
call fcn.004513c4
mov edx, dword [esp + 0x10]
mov byte [esp + esi + 0xb8], pe_nt_image_headers32
mov eax, dword [ebp + 0x20]
xor dword [esp + 0x18], eax
shl edx, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0xb8]
lea eax, [esp + edx + 0x108]
xor edi, dword [ebp + 0x24]
xor ebx, dword [ebp + 0x2c]
xor dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xbc]
xor dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xc0]
xor dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xc4]
xor dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x24]
xor ecx, dword [ebp + 0x28]
mov dword [esp + edx + 0x108], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa8], esi
mov dword [esp + 0x10], eax
add eax, 1
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x20], eax
jmp 0x409fcf
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
jmp 0x409b5c
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
mov ebx, dword [esp + 0x128]
mov ecx, dword [esp + 0x12c]
xor edx, dword [esp + 0xf0]
xor eax, dword [esp + 0xf4]
xor ebx, dword [esp + 0xe8]
mov dword [edi + 0x28], edx
xor ecx, dword [esp + 0xec]
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x2c], eax
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ebx, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
xor edx, dword [esp + 0xe0]
xor eax, dword [esp + 0xe4]
xor ebx, dword [esp + 0xd8]
mov dword [edi + 0x18], edx
xor ecx, dword [esp + 0xdc]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], eax
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x114]
mov ebx, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
xor edx, dword [esp + 0xd0]
xor eax, dword [esp + 0xd4]
xor ebx, dword [esp + 0xc8]
mov dword [edi + 8], edx
xor ecx, dword [esp + 0xcc]
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], eax
jmp 0x40a0db
mov edi, dword [ebp + 0x4c]
xor ecx, dword [ebp + 0x48]
xor edx, dword [ebp + 0x40]
xor eax, dword [ebp + 0x44]
mov dword [esp + 0xd0], ecx
xor edi, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov esi, dword [ecx]
mov dword [esp + 0xd4], edi
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
xor ecx, edx
xor edx, dword [ebp + 0x50]
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xd8], edx
xor ecx, eax
xor eax, dword [ebp + 0x54]
mov dword [esp + 0x10c], ecx
mov ecx, ebx
xor ebx, dword [ebp + 0x58]
xor ecx, esi
mov dword [esp + 0xdc], eax
mov esi, eax
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x24]
xor ecx, edi
mov dword [esp + 0x114], ecx
mov ecx, ebx
mov ebx, dword [ebp + 0x5c]
mov dword [esp + 0xe0], ecx
xor ebx, edi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xa8], edx
mov edi, dword [esp + 0x78]
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
xor ecx, dword [esp + 0x30]
xor ebx, edi
mov dword [esp + 0x34], edi
xor eax, edx
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x2c]
xor ecx, dword [esp + 0x28]
mov dword [esp + 0x124], ebx
xor eax, esi
xor dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x2c]
xor dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x30]
xor dword [esp + 0x40], ecx
xor eax, edi
xor dword [esp + 0x44], eax
mov eax, esi
sub dword [esp + 0x10], 0x20
cmp dword [esp + 0x10], 0xf
mov edi, eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x24], 2
mov dword [esp + 0x18], edx
ja 0x40a165
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x40a273
sub dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0xb8]
shl eax, 4
mov ebx, dword [esp + 0xc4]
lea edi, [eax + 0x160]
xor edx, dword [esp + eax + 0x110]
xor esi, dword [esp + eax + 0x108]
lea ecx, [esp + edi]
mov edi, dword [esp + 0xbc]
mov dword [esp + 0xc0], edx
lea edx, [esp + 0xb8]
xor edi, dword [ecx - 0x54]
add eax, dword [esp + 0x14]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x1c]
xor ebx, dword [ecx - 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 0xc4], ebx
call fcn.004513c4
jmp 0x40a0bc
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0xa8]
add eax, edi
add edi, 0x10
mov dword [eax], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x74], edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb0]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xb4]
mov dword [eax + 0xc], edx
jmp 0x40a111
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]