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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0xdc
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ecx
mov dword [esp], edx
call fcn.00407d10
cmp eax, 0x6666666
mov dword [ebp - 0xcc], eax
jbe 0x405d39
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0xcc]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0xfb7
jbe 0x405f39
mov dword [esp], eax
call fcn.00407c30
mov dword [ebp - 0xc8], eax
mov esi, dword [ebp - 0xc8]
test esi, esi
je 0x405d2f
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa4], ebx
lea ebx, [esi + 0xc]
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xa8], 0
lea eax, [eax + eax*8]
lea eax, [esi + eax*4]
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xc0], eax
jmp 0x405e4f
mov ecx, dword [ebp - 0xa4]
movzx edx, byte [ecx]
mov eax, edx
shr al, 5
movzx eax, al
mov eax, dword [eax*4 + 0x40c540]
bt eax, edx
jae 0x405f60
mov dword [ebp - 0xa0], 1
movsx ax, byte [ecx]
mov byte [ebp - 0x9c], 1
mov byte [ebp - 0xa8], 1
mov word [ebp - 0x9a], ax
cmp word [ebp - 0x9a], 0
je 0x405fb8
mov eax, 1
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x98]
cmp edx, ecx
je 0x405f14
mov dword [ebx - 0xc], edx
mov edx, dword [ebp - 0xa0]
test al, al
mov byte [ebx - 4], al
mov dword [ebx - 8], edx
je 0x405e39
movzx eax, word [ebp - 0x9a]
mov word [ebx - 2], ax
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0xa4], eax
add ebx, 0x24
mov byte [ebp - 0xa8], 0
cmp byte [ebp - 0xb4], 0
je 0x405db0
call sub.msys_2.0.dll___locale_mb_cur_max
mov edi, dword [ebp - 0xa4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00403b40
mov dword [esp + 8], eax
lea eax, [ebp - 0x9a]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msys_2.0.dll_mbrtowc
cmp eax, 0xffffffff
mov dword [ebp - 0xa0], eax
je 0x405f7c
cmp eax, 0xfffffffe
je 0x405f9b
test eax, eax
jne 0x405ed0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], 1
cmp byte [eax], 0
jne 0x4065d6
cmp word [ebp - 0x9a], 0
jne 0x4065fa
mov dword [esp], esi
mov byte [ebp - 0x9c], 1
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x405eea
mov byte [ebp - 0xb4], 0
movzx eax, byte [ebp - 0x9c]
mov byte [ebp - 0xa8], 1
test al, al
jne 0x405df4
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x98]
cmp edx, ecx
jne 0x405e1b
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msys_2.0.dll_memcpy
mov dword [ebx - 0xc], ebx
movzx eax, byte [ebp - 0x9c]
jmp 0x405e1e
add eax, 0x26
and eax, 0xfffffff0
call fcn.00407f78
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
add eax, 8
mov dword [ebp - 0xc8], eax
jmp 0x405d5e
mov dword [esp], esi
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x40661e
mov byte [ebp - 0xb4], 1
jmp 0x405e5c
mov dword [ebp - 0xa0], 1
mov byte [ebp - 0x9c], 0
mov byte [ebp - 0xa8], 1
xor eax, eax
jmp 0x405e07
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call sub.msys_2.0.dll_strlen
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0xa0], eax
jmp 0x405f8d
cmp dword [ebp - 0xcc], 2
mov eax, dword [ebp - 0xc0]
mov dword [eax + 4], 1
jbe 0x40608a
mov eax, dword [ebp - 0xc8]
mov esi, 2
xor ebx, ebx
mov dword [ebp - 0xc4], esi
lea edi, [eax + 0x2c]
mov esi, eax
lea esi, [esi]
movzx edx, byte [edi]
jmp 0x40601b
cmp byte [eax + 8], 0
je 0x406025
movzx eax, word [eax + 0xa]
cmp word [edi + 2], ax
sete al
test al, al
jne 0x406058
test ebx, ebx
mov eax, dword [ebp - 0xc0]
je 0x406400
sub ebx, dword [eax + ebx*4]
lea eax, [ebx + ebx*8]
test dl, dl
lea eax, [esi + eax*4]
jne 0x405ff5
mov ecx, dword [edi - 4]
cmp ecx, dword [eax + 4]
jne 0x40600a
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov byte [ebp - 0xb9], dl
mov dword [esp + 4], eax
mov eax, dword [edi - 8]
mov dword [esp], eax
call sub.msys_2.0.dll_memcmp
test eax, eax
movzx edx, byte [ebp - 0xb9]
sete al
test al, al
je 0x40600a
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
add ebx, 1
mov eax, ecx
sub eax, ebx
mov dword [edx + ecx*4], eax
add dword [ebp - 0xc4], 1
add edi, 0x24
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0xcc]
jne 0x405ff0
mov eax, dword [ebp - 0xd0]
mov byte [ebp - 0x80], 0
xor ebx, ebx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x4c], 0
mov dword [eax], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x3c], eax
lea esi, [esi]
test bl, bl
je 0x4062db
movzx ebx, byte [ebp - 0x34]
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
test bl, bl
lea eax, [eax + eax*8]
lea eax, [esi + eax*4]
jne 0x40646b
mov edx, dword [eax + 4]
xor ebx, ebx
cmp edx, dword [ebp - 0x38]
je 0x406294
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x4063c0
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc0]
mov ebx, dword [esi + eax*4]
sub eax, ebx
test ebx, ebx
mov dword [ebp - 0xc4], eax
je 0x4063f0
movzx edx, byte [ebp - 0x74]
lea esi, [ebp - 0x7c]
test dl, dl
je 0x406169
movzx edx, byte [ebp - 0x68]
test dl, dl
jne 0x4061a9
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x70], eax
sub ebx, 1
mov byte [ebp - 0x74], 0
je 0x4063f0
xor edx, edx
cmp byte [ebp - 0x80], 0
jne 0x4061d6
mov edi, dword [ebp - 0x70]
movzx ecx, byte [edi]
mov eax, ecx
shr al, 5
movzx eax, al
mov eax, dword [eax*4 + 0x40c540]
bt eax, ecx
jae 0x4061b5
mov dword [ebp - 0x6c], 1
movsx ax, byte [edi]
mov edx, 1
mov byte [ebp - 0x68], 1
mov word [ebp - 0x66], ax
test dl, dl
mov byte [ebp - 0x74], 1
je 0x406154
cmp word [ebp - 0x66], 0
jne 0x406154
call sub.msys_2.0.dll_abort
mov dword [esp], esi
mov byte [ebp - 0xb9], dl
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x40661e
movzx edx, byte [ebp - 0xb9]
mov byte [ebp - 0x80], 1
mov byte [ebp - 0xb9], dl
call sub.msys_2.0.dll___locale_mb_cur_max
mov edi, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00403b40
mov dword [esp + 8], eax
lea eax, [ebp - 0x66]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msys_2.0.dll_mbrtowc
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
movzx edx, byte [ebp - 0xb9]
je 0x406260
cmp eax, 0xfffffffe
je 0x406270
test eax, eax
jne 0x40623d
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], 1
cmp byte [eax], 0
jne 0x4065d6
cmp word [ebp - 0x66], 0
jne 0x4065fa
mov dword [esp], esi
mov byte [ebp - 0x68], 1
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x406251
mov byte [ebp - 0x80], 0
movzx edx, byte [ebp - 0x68]
jmp 0x4061a1
mov dword [ebp - 0x6c], 1
mov byte [ebp - 0x68], 0
jmp 0x4061a1
mov eax, dword [ebp - 0x70]
mov byte [ebp - 0xb9], dl
mov dword [esp], eax
call sub.msys_2.0.dll_strlen
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], eax
movzx edx, byte [ebp - 0xb9]
jmp 0x4061a1
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msys_2.0.dll_memcmp
test eax, eax
sete bl
test bl, bl
je 0x406114
add dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0xc4]
add dword [ebp - 0x3c], eax
cmp esi, dword [ebp - 0xcc]
mov byte [ebp - 0x40], 0
je 0x4065c6
xor ebx, ebx
cmp byte [ebp - 0x4c], 0
jne 0x406333
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [ecx]
mov eax, edx
shr al, 5
movzx eax, al
mov eax, dword [eax*4 + 0x40c540]
bt eax, edx
jae 0x40631c
mov dword [ebp - 0x38], 1
movsx ax, byte [ecx]
mov ebx, 1
mov byte [ebp - 0x34], 1
mov word [ebp - 0x32], ax
mov byte [ebp - 0x40], 1
jmp 0x4060ec
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x40661e
mov byte [ebp - 0x4c], 1
call sub.msys_2.0.dll___locale_mb_cur_max
mov esi, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403b40
lea ecx, [ebp - 0x48]
mov dword [esp + 8], eax
lea eax, [ebp - 0x32]
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sub.msys_2.0.dll_mbrtowc
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x406493
cmp eax, 0xfffffffe
je 0x406553
test eax, eax
jne 0x406398
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], 1
cmp byte [eax], 0
jne 0x4065d6
cmp word [ebp - 0x32], 0
jmp 0x4240c8
lea eax, [ebp - 0x48]
mov byte [ebp - 0x34], 1
mov dword [esp], eax
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x4063af
mov byte [ebp - 0x4c], 0
movzx ebx, byte [ebp - 0x34]
jmp 0x406313
movzx edx, byte [ebp - 0x74]
test dl, dl
je 0x406410
movzx edx, byte [ebp - 0x68]
test dl, dl
jne 0x40645b
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 0x74], 0
add dword [ebp - 0x70], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x3c], eax
jmp 0x4062db
movzx ebx, byte [ebp - 0x40]
jmp 0x4060e0
mov ecx, dword [ebp - 0xc4]
mov dword [eax + ecx*4], ecx
jmp 0x40606e
cmp byte [ebp - 0x80], 0
lea edi, [ebp - 0x7c]
jne 0x4064c7
mov esi, dword [ebp - 0x70]
movzx ecx, byte [esi]
mov eax, ecx
shr al, 5
movzx eax, al
mov eax, dword [eax*4 + 0x40c540]
bt eax, ecx
jae 0x4064a3
mov dword [ebp - 0x6c], 1
movsx ax, byte [esi]
mov edx, 1
mov byte [ebp - 0x68], 1
mov word [ebp - 0x66], ax
test dl, dl
mov byte [ebp - 0x74], 1
je 0x4063d4
cmp word [ebp - 0x66], 0
jne 0x4063d4
jmp 0x4061b0
movzx edx, word [ebp - 0x32]
test dx, dx
jne 0x40656a
mov eax, dword [ebp - 0xc8]
mov dword [esp], eax
call fcn.00407ca0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x38], 1
mov byte [ebp - 0x34], 0
jmp 0x406313
lea edi, [ebp - 0x7c]
mov byte [ebp - 0xb9], dl
mov dword [esp], edi
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x40661e
movzx edx, byte [ebp - 0xb9]
mov byte [ebp - 0x80], 1
mov byte [ebp - 0xb9], dl
call sub.msys_2.0.dll___locale_mb_cur_max
mov esi, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403b40
mov dword [esp + 8], eax
lea eax, [ebp - 0x66]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msys_2.0.dll_mbrtowc
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
movzx edx, byte [ebp - 0xb9]
je 0x406592
cmp eax, 0xfffffffe
je 0x4065a2
test eax, eax
jne 0x406536
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], 1
cmp byte [eax], 0
jne 0x4065d6
cmp word [ebp - 0x66], 0
jne 0x4065fa
mov dword [esp], edi
mov byte [ebp - 0x68], 1
call sub.msys_2.0.dll_mbsinit
test eax, eax
je 0x40654a
mov byte [ebp - 0x80], 0
movzx edx, byte [ebp - 0x68]
jmp 0x40644f
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.msys_2.0.dll_strlen
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
jmp 0x406313
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
lea eax, [eax + eax*8]
lea eax, [esi + eax*4]
cmp byte [eax + 8], 0
je 0x406106
cmp dx, word [eax + 0xa]
sete bl
jmp 0x4062ae
mov dword [ebp - 0x6c], 1
mov byte [ebp - 0x68], 0
jmp 0x40644f
mov eax, dword [ebp - 0x70]
mov byte [ebp - 0xb9], dl
mov dword [esp], eax
call sub.msys_2.0.dll_strlen
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x6c], eax
movzx edx, byte [ebp - 0xb9]
jmp 0x40644f
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0xd0]
mov dword [esi], eax
jmp 0x406478
mov dword [esp + 0xc], 0x40c598
mov dword [esp + 8], 0x40c5c1
mov dword [esp + 4], 0xb2
mov dword [esp], 0x40c578
call sub.msys_2.0.dll___assert_func
mov dword [esp + 0xc], 0x40c5af
mov dword [esp + 8], 0x40c5c1
mov dword [esp + 4], 0xb3
mov dword [esp], 0x40c578
call sub.msys_2.0.dll___assert_func
mov dword [esp + 0xc], 0x40c560
mov dword [esp + 8], 0x40c5c1
mov dword [esp + 4], 0x96
mov dword [esp], 0x40c578
call sub.msys_2.0.dll___assert_func
lea esi, [esi]
lea edi, [edi]