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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
test esi, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
js 0x40b390
movzx esi, word [ebp + 0xc]
mov ecx, dword [0x47d9ac]
mov eax, esi
and ax, 0xf000
test ecx, ecx
jne 0x40b2f0
mov dword [esp + 0x24], 0
cmp ax, 0x8000
je 0x40b3e0
movzx eax, word [ebp + 0xe]
mov word [esp + 0x1c], ax
test word [esp + 0x1c], 0x800
je 0x40b320
mov eax, dword [0x478274]
or eax, ebx
test bh, 0x40
cmovne ebx, eax
movzx eax, si
mov edx, eax
and dx, 0xf000
cmp dx, 0xa000
je 0x40b20e
mov esi, dword [0x47d9c4]
test esi, esi
je 0x40b3a0
mov esi, dword [edi + 0x10]
mov ecx, ebx
or ecx, 0x10
xor esi, eax
and esi, 0xfff
cmovne ebx, ecx
mov ecx, dword [0x480980]
test ecx, ecx
je 0x40b226
mov esi, dword [0x47d970]
test esi, esi
jne 0x40b480
mov ecx, dword [0x480970]
test ecx, ecx
je 0x40b23a
test byte [ebp + 0xf], 4
je 0x40b463
cmp dx, 0xa000
je 0x40b278
mov esi, dword [0x47d9cc]
test esi, esi
je 0x40b278
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x40b570
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.00436c70
mov edx, ebx
or dl, 0x80
test eax, eax
cmovne ebx, edx
test ebx, 0xa7ff
jne 0x40b28e
cmp word [0x480920], 1
jle 0x40b4a0
mov edx, dword [0x47d8c8]
test edx, edx
jne 0x40b2e4
cmp dword [0x452f10], 0x1c
movzx esi, bx
jle 0x40b352
mov eax, dword [esp + 0x18]
test eax, eax
js 0x40b2c1
mov dword [esp + 4], eax
mov eax, dword [0x45300c]
mov dword [esp], eax
call fcn.0042d150
mov eax, dword [0x45300c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0042cba0
test bh, 8
jne 0x40b510
and bh, 0x10
jne 0x40b530
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x4000
je 0x40b500
cmp ax, 0xa000
mov dword [esp + 0x24], 1
jne 0x40b1af
mov edx, ecx
and edx, 4
mov dword [esp + 0x24], edx
jmp 0x40b1b9
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40b4d0
test bh, 0xc0
je 0x40b1dc
test ebx, 0x40000
jne 0x40b1dc
test bh, 0x10
jne 0x40b560
or ebx, 8
jmp 0x40b1dc
mov eax, dword [esp + 0x18]
test eax, eax
js 0x40b2e4
cmp dword [0x47d85c], 1
mov edi, dword [esp + 0x20]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], edi
sbb eax, eax
and eax, 5
add eax, 2
mov dword [esp + 0x60], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004212d0
or bh, 0x20
jmp 0x40b278
mov ecx, dword [0x47d9c0]
test ecx, ecx
je 0x40b20e
test byte [edi + 0x10], 0x49
setne byte [esp + 0x1c]
test al, 0x49
setne cl
mov esi, ecx
mov ecx, ebx
or ecx, 0x10
mov dword [esp + 0x24], ecx
mov ecx, esi
cmp byte [esp + 0x1c], cl
cmovne ebx, dword [esp + 0x24]
jmp 0x40b20e
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
movzx eax, word [ebp + 0xe]
test ah, 2
mov word [esp + 0x1c], ax
je 0x40b43c
mov eax, dword [0x47dcbc]
lea ecx, [eax + 1]
movzx eax, word [esp + 0x1c]
shr ax, 0xc
and eax, 1
mov edx, eax
mov eax, ecx
shl eax, 0x1e
sub eax, ecx
mov ecx, eax
sub ecx, edx
mov eax, dword [ebp + ecx*4]
mov edx, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
adc edx, dword [esp + 0x34]
mov ecx, dword [edi + 0x2c]
xor eax, dword [edi + 0x28]
xor ecx, edx
mov edx, ebx
or edx, 4
or eax, ecx
cmovne ebx, edx
jmp 0x40b1c2
shl ecx, 2
mov esi, ebp
sub esi, ecx
mov ecx, ebx
or ecx, 0x40
mov esi, dword [esi]
cmp dword [edi + 0x1c], esi
cmovne ebx, ecx
jmp 0x40b23a
shl ecx, 2
mov esi, ebp
sub esi, ecx
mov ecx, ebx
or ecx, 0x20
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x18]
cmp dword [esi], ecx
cmovne ebx, dword [esp + 0x1c]
jmp 0x40b226
cmp dword [0x47d864], 1
jg 0x40b28e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40b2e4
cmp byte [eax], 0
jne 0x40b28e
jmp 0x40b2e4
mov eax, dword [edi + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call fcn.00419bb0
movzx esi, word [ebp + 0xc]
test eax, eax
setne al
test al, al
je 0x40b1dc
or ebx, 8
jmp 0x40b1dc
mov edx, ecx
and edx, 2
mov dword [esp + 0x24], edx
jmp 0x40b1b9
movzx eax, byte [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [0x45300c]
mov dword [esp], eax
call fcn.0042d050
jmp 0x40b2db
mov edi, dword [esp + 0x20]
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov dword [esp + 0x68], eax
mov eax, dword [0x45300c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0042d080
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
setne al
jmp 0x40b4eb
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00436910
movzx eax, word [ebp + 0xc]
jmp 0x40b256