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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov esi, dword [edx + 8]
mov ecx, dword [ebx + 0x3c]
cmp eax, esi
jae 0x438eda
cmp ecx, 8
ja case.default.0x438c5d
jmp dword [ecx*4 + 0x454b34]
mov esi, dword [edx]
lea edi, [eax + 1]
mov dword [edx + 4], edi
movzx eax, byte [esi + eax]
test eax, eax
je 0x4391ca
cmp eax, 0xdf
ja 0x438c84
cmp eax, 1
jne 0x438cb0
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
jmp 0x438cc0
cmp dword [ebx + 0x4c], 0
je 0x438cc0
mov eax, 7
jmp 0x4391ed
cmp eax, 0x7f
jbe 0x438d5c
mov esi, eax
mov dword [ebx + 0x3c], 1
shl esi, 0x10
and esi, 0x1f0000
mov dword [ebx + 0x44], esi
cmp eax, 0xbf
jbe 0x438cf8
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x40], 5
jmp 0x438c47
cmp dword [ebx + 0x50], 0
jne 0x438cb6
mov dword [ebx + 0x40], 6
cmp eax, 0x9f
jbe 0x438c47
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov word [ebx + ecx*2 + 0x78], 0x400
inc ecx
cmp ecx, 0x3736
jne 0x438d33
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
jmp 0x438c47
cmp eax, 2
ja 0x438cb6
mov dword [ebx + 0x3c], 3
mov dword [ebx + 0x40], 8
jmp 0x438c47
mov ecx, dword [edx]
lea esi, [eax + 1]
mov dword [edx + 4], esi
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x3c], 2
shl eax, 8
add dword [ebx + 0x44], eax
jmp 0x438c47
mov ecx, dword [edx]
lea esi, [eax + 1]
mov dword [edx + 4], esi
movzx ecx, byte [ecx + eax]
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x3c], 3
lea eax, [ecx + eax + 1]
mov dword [ebx + 0x44], eax
jmp 0x438c47
mov ecx, dword [edx]
lea esi, [eax + 1]
mov dword [edx + 4], esi
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x3c], 4
shl eax, 8
mov dword [ebx + 0x48], eax
jmp 0x438c47
mov ecx, dword [edx]
lea esi, [eax + 1]
mov dword [edx + 4], esi
movzx ecx, byte [ecx + eax]
mov eax, dword [ebx + 0x48]
lea eax, [ecx + eax + 1]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x3c], eax
jmp 0x438c47
mov ecx, dword [edx]
lea esi, [eax + 1]
mov dword [edx + 4], esi
mov al, byte [ecx + eax]
cmp al, 0xe0
ja 0x438cb6
xor ecx, ecx
cmp al, 0x2c
jbe 0x438e16
sub eax, 0x2d
inc ecx
jmp 0x438e0c
mov esi, 1
shl esi, cl
xor ecx, ecx
dec esi
mov dword [ebx + 0x74], esi
cmp al, 8
jbe 0x438e2d
sub eax, 9
inc ecx
jmp 0x438e23
movzx eax, al
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x6c], eax
add eax, ecx
cmp eax, 4
ja 0x438cb6
mov eax, 1
mov dword [ebx + 0x64], 0
shl eax, cl
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
dec eax
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x70], eax
xor eax, eax
mov word [ebx + eax*2 + 0x78], 0x400
inc eax
cmp eax, 0x3736
jne 0x438e71
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
mov dword [ebx + 0x3c], 6
cmp dword [ebx + 0x48], 4
jbe 0x438cb6
cmp dword [ebx + 8], 0
je 0x4391d1
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
jne 0x438ebe
xor eax, eax
jmp 0x4391ed
mov esi, dword [edx]
mov ecx, dword [ebx + 4]
lea edi, [eax + 1]
mov dword [edx + 4], edi
movzx eax, byte [esi + eax]
shl ecx, 8
dec dword [ebx + 8]
add eax, ecx
mov dword [ebx + 4], eax
jmp 0x438ea5
cmp ecx, 7
jne 0x438eb7
mov ecx, dword [ebx + 0x44]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0x10]
mov esi, dword [ebx + 0x20]
cmp eax, ecx
cmova eax, ecx
mov ecx, dword [ebx + 0x2c]
mov edi, ecx
sub edi, esi
cmp eax, edi
jae 0x438efe
lea ecx, [eax + esi]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x6ee4]
mov eax, dword [edx + 8]
mov esi, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x48]
test ecx, ecx
jne 0x438f1f
test eax, eax
jne 0x439007
mov edi, 0x2a
sub eax, ecx
sub edi, ecx
cmp edi, eax
cmovbe eax, edi
mov edi, dword [ebp - 0x1c]
sub edi, esi
cmp eax, edi
cmovbe edi, eax
lea eax, [ebx + 0x6ee8]
add esi, dword [edx]
mov dword [ebp - 0x20], eax
add eax, ecx
mov dword [ebp - 0x1c], edi
mov edi, eax
mov ecx, dword [ebp - 0x1c]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
add esi, dword [ebx + 0x6ee4]
cmp esi, dword [ebx + 0x48]
jne 0x438f77
mov ecx, 0x3f
xor eax, eax
sub ecx, esi
add esi, dword [ebp - 0x20]
mov edi, esi
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx + 0x6ee4]
jmp 0x438f8d
lea eax, [esi - 0x15]
cmp esi, 0x14
ja 0x438f8d
mov dword [ebx + 0x6ee4], esi
mov eax, dword [ebp - 0x1c]
jmp 0x43908d
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], eax
mov eax, ebx
mov dword [ebp + 0xc], edx
call fcn.004221ac
test eax, eax
je 0x438cb6
mov ecx, dword [ebx + 0x6ee4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
add esi, ecx
cmp eax, esi
ja 0x438cb6
sub dword [ebx + 0x48], eax
cmp eax, ecx
mov edx, dword [ebp + 0xc]
jae 0x438ff5
sub ecx, eax
add eax, dword [ebp - 0x20]
mov dword [ebx + 0x6ee4], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov edx, dword [ebp + 0xc]
jmp 0x439090
add eax, dword [edx + 4]
sub eax, ecx
mov dword [edx + 4], eax
mov dword [ebx + 0x6ee4], 0
mov ecx, dword [edx + 8]
sub ecx, dword [edx + 4]
cmp ecx, 0x14
jbe 0x439066
mov eax, dword [edx]
mov esi, dword [ebx + 0x48]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 4]
lea edi, [esi + 0x15]
mov dword [ebx + 0x10], eax
add eax, esi
cmp ecx, edi
jae 0x43902f
mov eax, dword [edx + 8]
sub eax, 0x15
mov dword [ebx + 0x14], eax
mov eax, ebx
mov dword [ebp + 0xc], edx
call fcn.004221ac
test eax, eax
je 0x438cb6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x48]
mov eax, dword [edx + 4]
mov edi, ecx
sub edi, eax
cmp edi, esi
ja 0x438cb6
sub eax, ecx
add eax, esi
mov dword [ebx + 0x48], eax
mov dword [edx + 4], ecx
mov esi, dword [edx + 4]
mov eax, dword [edx + 8]
sub eax, esi
cmp eax, 0x14
ja 0x439090
mov ecx, dword [ebx + 0x48]
lea edi, [ebx + 0x6ee8]
cmp eax, ecx
cmova eax, ecx
add esi, dword [edx]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x6ee4], eax
add dword [edx + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x1c]
sub edi, eax
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebx + 0x2c]
jne 0x4390b0
mov dword [ebx + 0x20], 0
mov esi, dword [ebx + 0x18]
mov ecx, dword [edx + 0x10]
add ecx, dword [edx + 0xc]
add esi, eax
mov edi, ecx
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x1c], ecx
add dword [edx + 0x10], edi
add eax, dword [ebx + 0x44]
sub eax, dword [ebp - 0x1c]
mov dword [ebx + 0x44], eax
jne 0x439109
cmp dword [ebx + 0x48], 0
jne 0x438cb6
cmp dword [ebx + 0x68], 0
jne 0x438cb6
cmp dword [ebx + 4], 0
jne 0x438cb6
mov dword [ebx], 0xffffffff
mov dword [ebx + 8], 5
jmp 0x4391e1
mov eax, dword [edx + 0x14]
cmp dword [edx + 0x10], eax
je 0x438eb7
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jne 0x438c47
mov eax, dword [ebx + 0x48]
cmp dword [ebx + 0x6ee4], eax
jae 0x438c47
jmp 0x438eb7
mov edi, dword [edx + 4]
mov eax, dword [edx + 8]
cmp eax, edi
jbe 0x438eb7
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x20]
jbe 0x438eb7
mov ecx, dword [ebx + 0x2c]
sub ecx, dword [ebx + 0x20]
cmp ecx, esi
cmova ecx, esi
sub eax, edi
mov edi, dword [ebx + 0x18]
cmp ecx, eax
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
cmp eax, ecx
cmova eax, ecx
add edi, dword [ebx + 0x20]
sub esi, eax
mov ecx, eax
mov dword [ebx + 0x48], esi
mov esi, dword [edx + 4]
add esi, dword [edx]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
add ecx, eax
cmp ecx, dword [ebx + 0x24]
jbe 0x439196
mov dword [ebx + 0x24], ecx
cmp ecx, dword [ebx + 0x2c]
jne 0x43919d
xor ecx, ecx
mov dword [ebx + 0x20], ecx
mov ecx, dword [edx + 0x10]
add ecx, dword [edx + 0xc]
mov esi, dword [edx + 4]
mov edi, ecx
add esi, dword [edx]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x1c], ecx
add dword [edx + 0x10], eax
add dword [edx + 4], eax
mov esi, dword [ebx + 0x48]
test esi, esi
jne 0x439135
jmp 0x4391e1
mov eax, 1
jmp 0x4391ed
sub dword [ebx + 0x48], 5
mov dword [ebx + 0x3c], 7
jmp case.0x438c5d.7
mov dword [ebx + 0x3c], 0
jmp 0x438c47
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret