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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [esp], 0x2c00
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [esp + 0x2c], eax
je 0x41a360
mov eax, dword [esp + 0x2c]
add eax, 0xc00
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41a13b
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
test eax, eax
je 0x41ab77
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov esi, dword [esi + 0xc]
lea edi, [eax*4]
mov dword [esp + 0x38], edi
mov edx, dword [esi + eax*4]
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
lea eax, [eax + edx*8]
movzx edi, byte [eax + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax + 4]
mov ebx, edi
mov dword [esp + 0x20], edi
mov edi, eax
shr edi, 8
mov dword [esp + 0x14], eax
and di, 0x3ff
cmp ebx, 1
je 0x41a36d
cmp dword [esp + 0x20], 3
je 0x41a706
cmp dword [esp + 0x20], 5
je 0x41a87a
cmp dword [esp + 0x20], 7
je 0x41a9b0
mov esi, dword [esp + 0x24]
add dword [esp + 0x30], 1
mov eax, dword [esp + 0x30]
cmp eax, dword [esi + 8]
jb 0x41a16a
mov eax, dword [esp + 0x18]
sub eax, 1
cmp eax, 0xfffffffc
ja 0x41acaa
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], 0
lea ebx, [eax + 1]
mov dword [esp + 0x70], ebx
shl ebx, 2
mov dword [esp], ebx
call sub.cygwin1.dll_malloc
test eax, eax
mov esi, eax
mov dword [esp + 0x78], eax
je 0x41a9d5
cmp dword [esp + 0x18], 0x155551aa
mov dword [esp + 0x50], 0
ja 0x41a32a
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp], eax
mov dword [esp + 0x3c], eax
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [esp + 0x14], eax
je 0x41a32a
mov eax, dword [esp + 0x14]
lea ebp, [esp + 0x90]
lea esi, [eax + ebx - 4]
lea eax, [eax + ebx*2 - 8]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [ebp + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x41a278
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x4b], 0
mov dword [esp + 0x1c], 0
lea edi, [eax + 4]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov esi, eax
lea eax, [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], 0
mov eax, dword [edi]
xor ebx, ebx
test eax, eax
je 0x41a72e
mov eax, ebp
mov dword [esp + 0x28], esi
mov ebp, edi
mov esi, dword [esp + 0x20]
mov edi, eax
jmp 0x41a2ec
add ebx, 1
cmp dword [ebp], ebx
jbe 0x41a724
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ecx*4]
cmp eax, 0xffffffff
je 0x41a2e0
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x18]
mov dword [esp], esi
lea eax, [eax + ecx*4]
mov dword [esp + 4], eax
call fcn.00419080
test eax, eax
mov dword [esp + 0x50], eax
je 0x41a2e0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.004264dc
mov esi, dword [esp + 0x78]
mov dword [esp], esi
xor ebx, ebx
call fcn.004264dc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
lea esi, [eax + 8]
nop
mov eax, dword [esi]
add ebx, 1
add esi, 0xc
mov dword [esp], eax
call fcn.004264dc
cmp ebx, edi
jne 0x41a340
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004264dc
xor eax, eax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov edx, ebx
movzx ecx, byte [eax]
mov eax, ecx
and ecx, 0x1f
shr eax, 3
shl edx, cl
and eax, 0x1c
or dword [esp + eax + 0x50], edx
test di, di
je 0x41a443
test di, 0x20
jne 0x41a8c7
test di, 0x80
jne 0x41a8fe
test di, 4
je 0x41a3f3
cmp dword [esp + 0x20], 1
je 0x41a9e4
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x5c], 1
jle 0x41aa10
mov ebx, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebp, eax
nop
mov eax, dword [ebx + edx*4]
not eax
or eax, dword [ebp + edx*4 + 0x60]
and eax, dword [esp + edx*4 + 0x50]
mov dword [esp + edx*4 + 0x50], eax
add edx, 1
or ecx, eax
cmp edx, 8
jne 0x41a3d0
test ecx, ecx
je 0x41a1d5
test di, 8
je 0x41a443
cmp dword [esp + 0x20], 1
je 0x41aa33
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x5c], 1
jle 0x41aab6
mov ebx, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov edi, eax
lea esi, [esi]
mov eax, dword [ebx + edx*4]
and eax, dword [edi + edx*4 + 0x60]
not eax
and eax, dword [esp + edx*4 + 0x50]
mov dword [esp + edx*4 + 0x50], eax
add edx, 1
or ecx, eax
cmp edx, 8
jne 0x41a420
test ecx, ecx
je 0x41a1d5
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41ab6e
cmp dword [esp + 0x20], 1
je 0x41a690
lea ebx, [esp + 0x70]
xor ecx, ecx
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp + eax*4]
and edx, dword [esp + eax*4 + 0x50]
mov dword [ebx + eax*4], edx
add eax, 1
or ecx, edx
cmp eax, 8
jne 0x41a480
test ecx, ecx
je 0x41a5c3
lea eax, [esp + 0x90]
mov dword [esp + 0x28], ebx
xor edi, edi
xor esi, esi
xor ecx, ecx
mov ebx, eax
mov eax, dword [esp + ecx*4 + 0x50]
mov edx, eax
not edx
and edx, dword [ebp + ecx*4]
mov dword [ebx + ecx*4], edx
or esi, edx
mov edx, dword [ebp + ecx*4]
not edx
and eax, edx
mov dword [esp + ecx*4 + 0x50], eax
add ecx, 1
or edi, eax
cmp ecx, 8
jne 0x41a4b0
test esi, esi
mov ebx, dword [esp + 0x28]
je 0x41a599
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x90]
mov eax, esi
shl eax, 5
add eax, dword [esp + 0x34]
mov dword [eax], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0xa4]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xa8]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0xac]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov dword [ebp], eax
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*4]
mov dword [esp], eax
call fcn.00419620
test eax, eax
jne 0x41a6ca
mov eax, esi
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004172f0
test al, al
je 0x41a6ca
test edi, edi
je 0x41a5de
add dword [esp + 0x14], 1
add ebp, 0x20
add dword [esp + 0x1c], 0xc
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jb 0x41a463
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], esi
jne 0x41a1d5
mov eax, esi
lea edx, [esi + esi*2]
mov esi, dword [esp + 0x24]
shl eax, 5
shl edx, 2
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
mov dword [edi + eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [edi + eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [edi + eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edi + eax + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov dword [edi + eax + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [edi + eax + 0x14], ecx
mov ecx, dword [esp + 0x68]
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + eax + 0x1c], ecx
mov eax, dword [esp + 0x38]
mov ebx, dword [esi + eax]
mov eax, dword [esp + 0x2c]
lea esi, [eax + edx]
mov dword [esi], 1
mov dword [esi + 4], 1
mov dword [esp], 4
call sub.cygwin1.dll_malloc
test eax, eax
mov dword [esi + 8], eax
je 0x41a6bd
add dword [esp + 0x18], 1
mov dword [eax], ebx
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41a678
jmp 0x41a1d5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
movzx edx, byte [eax]
shl ecx, 5
mov eax, edx
shr eax, 3
and eax, 0x1c
add eax, ecx
mov eax, dword [edi + eax]
bt eax, edx
jae 0x41a5c3
jmp 0x41a46e
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a354
mov edi, dword [esp + 0x2c]
xor ebx, ebx
lea esi, [edi + 8]
mov edi, eax
mov eax, dword [esi]
add ebx, 1
add esi, 0xc
mov dword [esp], eax
call fcn.004264dc
cmp ebx, edi
jne 0x41a6e1
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004264dc
jmp 0x41a360
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
xor eax, eax
nop
mov ecx, dword [edx + eax*4]
or dword [esp + eax*4 + 0x50], ecx
add eax, 1
cmp eax, 8
jne 0x41a710
jmp 0x41a387
mov esi, dword [esp + 0x28]
mov eax, edi
mov edi, ebp
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00419860
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov dword [ebx + ecx*4], eax
je 0x41aa60
cmp byte [eax + 0x34], 0
js 0x41a915
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
mov dword [ecx + ebx*4], eax
mov edx, dword [esp + 0x44]
xor eax, eax
lea esi, [esi]
mov ecx, dword [esi + eax*4]
or dword [edx + eax*4], ecx
add eax, 1
cmp eax, 8
jne 0x41a790
add dword [esp + 0x1c], 1
add edi, 0xc
add esi, 0x20
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
jne 0x41a2b6
cmp byte [esp + 0x4b], 0
mov ebp, dword [esp + 0x44]
jne 0x41abc7
mov dword [esp + 4], 0x100
mov dword [esp], 4
call sub.cygwin1.dll_calloc
mov esi, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x2c], eax
je 0x41a31a
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x28], ebp
mov ebp, eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov edx, 1
mov esi, dword [esp + 0x20]
mov eax, dword [eax + ebp]
lea edi, [edi + ebp + 0x20]
mov dword [esp + 0x24], edi
test eax, eax
jne 0x41a82d
jmp 0x41aadb
add edx, edx
add esi, 4
shr eax, 1
je 0x41aadb
test al, 1
je 0x41a820
mov edi, dword [esp + 0x2c]
test dword [edi + ebp + 0xc00], edx
jne 0x41abc0
mov ecx, dword [esp + 0x24]
xor ebx, ebx
nop
lea esi, [esi]
mov edi, dword [ecx]
add ebx, 1
add ecx, 0x20
and edi, edx
test edi, edi
je 0x41a850
shl ebx, 2
mov edi, dword [esp + 0x40]
test dword [edi + ebp + 0x60], edx
je 0x41ab60
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + ebx]
mov dword [esi], ecx
jmp 0x41a820
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x5c], 1
jle 0x41aa71
mov edx, dword [eax + 0x3c]
xor eax, eax
lea esi, [esi]
mov ecx, dword [edx + eax*4]
or dword [esp + eax*4 + 0x50], ecx
add eax, 1
cmp eax, 8
jne 0x41a890
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x80]
test al, 0x40
jne 0x41a8b5
and dword [esp + 0x50], 0xfffffbff
test al, 0x80
je 0x41a387
and dword [esp + 0x50], 0xfffffffe
jmp 0x41a387
mov edx, dword [esp + 0x50]
xor eax, eax
and edx, 0x400
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41a8d3
test edx, edx
je 0x41a1d5
test di, 0x80
mov dword [esp + 0x50], 0x400
je 0x41a3a6
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41a900
jmp 0x41a1d5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00419860
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov dword [ebx + ecx*4], eax
je 0x41aba8
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ebx + ecx*4]
je 0x41a96a
movzx ebx, byte [esp + 0x4b]
cmp dword [ebp + 0x5c], 2
mov eax, 1
cmovge ebx, eax
mov byte [esp + 0x4b], bl
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 2
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00419860
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov dword [ebx + ecx*4], eax
jne 0x41a784
mov eax, dword [esp + 0x50]
test eax, eax
je 0x41a784
jmp 0x41a31a
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
jmp 0x41a89f
mov dword [esp + 0x50], 0xc
xor esi, esi
jmp 0x41a32a
mov eax, dword [esp + 0x3c]
test byte [eax + 6], 0x40
jne 0x41a3b8
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41a9f4
jmp 0x41a1d5
mov ebx, dword [esp + 0x40]
xor ecx, ecx
xor eax, eax
mov edx, dword [ebx + eax*4 + 0x60]
and edx, dword [esp + eax*4 + 0x50]
mov dword [esp + eax*4 + 0x50], edx
add eax, 1
or ecx, edx
cmp eax, 8
jne 0x41aa18
jmp 0x41a3eb
mov eax, dword [esp + 0x3c]
test byte [eax + 6], 0x40
je 0x41a405
xor eax, eax
mov dword [esp + eax + 0x50], 0
add eax, 4
cmp eax, 0x20
jb 0x41aa43
jmp 0x41a1d5
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x41a761
jmp 0x41a31a
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x6c], 0xffffffff
jmp 0x41a89f
mov ebx, dword [esp + 0x40]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + edx*4 + 0x60]
not eax
and eax, dword [esp + edx*4 + 0x50]
mov dword [esp + edx*4 + 0x50], eax
add edx, 1
or ecx, eax
cmp edx, 8
jne 0x41aabe
jmp 0x41a43b
add ebp, 4
sub dword [esp + 0x20], 0xffffff80
cmp ebp, 0x20
jne 0x41a7f9
test byte [esp + 0x91], 4
je 0x41ab14
mov edx, dword [esp + 0x4c]
xor eax, eax
test dword [edx], 0x400
jne 0x41ac86
add eax, 1
add edx, 0x20
cmp eax, dword [esp + 0x18]
jne 0x41aafc
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov ebx, eax
add esi, eax
mov eax, dword [ebx + 8]
add ebx, 0xc
mov dword [esp], eax
call fcn.004264dc
cmp ebx, esi
jne 0x41ab38
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004264dc
mov eax, 1
jmp 0x41a362
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + ebx]
mov dword [esi], ecx
jmp 0x41a820
xor edx, edx
xor eax, eax
jmp 0x41a5fe
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004264dc
mov dword [esp + 4], 0x100
mov dword [esp], 4
call sub.cygwin1.dll_calloc
mov esi, dword [esp + 0x24]
test eax, eax
mov dword [esi + 0x2c], eax
setne al
jmp 0x41a362
mov edx, dword [esp + 0x50]
test edx, edx
je 0x41a948
jmp 0x41a31a
xor ebx, ebx
jmp 0x41a861
mov dword [esp + 4], 0x200
mov dword [esp], 4
call sub.cygwin1.dll_calloc
mov esi, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x30], eax
je 0x41a31a
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, dword [esp + 0x34]
mov esi, dword [ebp + edi]
mov edx, 1
mov ecx, dword [esp + 0x20]
lea eax, [eax + edi + 0x20]
test esi, esi
mov dword [esp + 0x24], eax
jne 0x41ac1c
jmp 0x41ac6c
add edx, edx
add ecx, 4
shr esi, 1
je 0x41ac6c
test esi, 1
je 0x41ac13
mov eax, dword [esp + 0x2c]
test dword [eax + edi + 0xc00], edx
jne 0x41ac82
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
add ebx, 1
add eax, 0x20
and ecx, edx
test ecx, ecx
je 0x41ac3b
mov ecx, dword [esp + 0x28]
lea eax, [ebx*4]
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + eax]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + eax]
mov dword [ecx + 0x400], eax
jmp 0x41ac13
add edi, 4
sub dword [esp + 0x20], 0xffffff80
cmp edi, 0x20
jne 0x41abf4
jmp 0x41aaec
xor eax, eax
jmp 0x41ac54
mov esi, dword [esp + 0x38]
cmp byte [esp + 0x4b], 0
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x28], eax
je 0x41ab14
mov dword [esi + 0x428], eax
jmp 0x41ab14
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41ab83
jmp 0x41a360