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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x2c
test byte [ebx + 0xa], 8
mov dword [esp + 0x1c], edx
je 0x415ae3
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x24]
setbe al
movzx eax, al
cmp dword [ebx], 0
jne 0x415b02
mov edx, dword [ebx + 0x7c]
mov esi, dword [ebx + 0x8c]
mov edx, dword [edx]
sub edx, esi
cmp edx, 0x14ccb
jbe 0x415b02
add esi, dword [ebx + 0x74]
jmp 0x415b08
lea esi, [ebx + 0x39272]
cmp dword [ebx + 0x5c], 0
lea edx, [esi + 0x14cbc]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], edx
je 0x415b36
mov dword [esp + 8], 0xc3e
mov dword [esp + 4], 0x424620
mov dword [esp], str._d__m_output_flush_remaining
jmp 0x415ed2
mov edi, dword [ebx + 0x2c]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov ecx, dword [ebx + 0x38]
movzx edx, byte [edi]
sar edx, cl
mov byte [edi], dl
xor edx, edx
cmp dword [ebx + 0x38], 8
sete dl
sub dword [ebx + 0x28], edx
test byte [ebx + 9], 0x10
jne 0x415b7e
xor edx, edx
cmp dword [esp + 0x1c], 4
mov ecx, dword [ebx + 0x44]
sete dl
shl edx, cl
inc ecx
or dword [ebx + 0x48], edx
mov dword [ebx + 0x44], ecx
jmp 0x415c07
cmp dword [ebx + 0x64], 0
jne 0x415b63
mov ecx, dword [ebx + 0x44]
mov edx, 0x78
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 8
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, 7
jbe 0x415bbc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x415bb2
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415b97
mov edx, 1
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 8
mov dword [ebx + 0x44], ecx
cmp dword [ebx + 0x44], 7
jbe 0x415b63
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x415be5
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415bcc
cmp edi, dword [ebx + 0x34]
jae 0x415bff
lea edx, [edi + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [edi], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
mov edi, dword [ebx + 0x44]
cmp edi, 7
mov dword [esp + 0x18], edi
mov edi, dword [ebx + 0x30]
ja 0x415bef
test eax, eax
mov ebp, dword [ebx + 0x48]
jne 0x415c53
test byte [ebx + 0xa], 4
mov edx, 1
jne 0x415c31
xor edx, edx
cmp dword [ebx + 0x3c], 0x2f
setbe dl
mov eax, ebx
call fcn.004156d4
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x415d5b
mov edx, dword [ebx + 0x30]
sub edx, edi
inc edx
cmp ecx, edx
ja 0x415d5b
jmp 0x415c55
xor eax, eax
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x24]
ja 0x415d5b
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x48], ebp
add eax, 2
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
cmp eax, 7
jbe 0x415c99
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x415c8f
lea edx, [eax + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415c74
test eax, eax
jne 0x415ca4
mov eax, 2
jmp 0x415cce
mov dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
jbe 0x415c9d
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x415cc4
lea edx, [eax + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415cab
movzx edx, word [ebx + 0x3c]
mov ecx, dword [ebx + 0x44]
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 0x10
mov dword [ebx + 0x44], ecx
cmp dword [ebx + 0x44], 7
jbe 0x415d03
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x415cf9
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415ce0
xor dword [ebx + 0x3c], 0xffff
dec eax
jne 0x415cce
xor eax, eax
cmp eax, dword [ebx + 0x3c]
jae 0x415d78
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
add edx, eax
and edx, 0x7fff
movzx edx, byte [ebx + edx + 0x90]
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 8
mov dword [ebx + 0x44], ecx
cmp dword [ebx + 0x44], 7
jbe 0x415d58
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x415d4e
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415d35
inc eax
jmp 0x415d0f
test eax, eax
jne 0x415d78
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x30], edi
mov edx, 1
mov dword [ebx + 0x48], ebp
mov dword [ebx + 0x44], eax
mov eax, ebx
call fcn.004156d4
cmp dword [esp + 0x1c], 0
jne 0x415da7
mov ebp, dword [ebx + 0x30]
cmp ebp, dword [ebx + 0x34]
jb 0x415ed7
mov dword [esp + 8], 0xc8b
mov dword [esp + 4], 0x424620
mov dword [esp], str.d__m_pOutput_buf___d__m_pOutput_buf_end
jmp 0x415ed2
cmp dword [esp + 0x1c], 4
jne 0x415e32
cmp dword [ebx + 0x44], 0
jne 0x415dc8
test byte [ebx + 9], 0x10
je 0x415d7f
mov edx, dword [ebx + 0x18]
mov eax, 4
jmp 0x415e1d
mov dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
jbe 0x415db8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x415de8
lea edx, [eax + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415dcf
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x415e05
lea ecx, [edi + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edi], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
ja 0x415df2
shl edx, 8
dec eax
je 0x415d7f
mov ecx, dword [ebx + 0x44]
mov edi, edx
shr edi, 0x18
shl edi, cl
add ecx, 8
or dword [ebx + 0x48], edi
mov dword [ebx + 0x44], ecx
jmp 0x415e0d
add dword [ebx + 0x44], 3
mov eax, dword [ebx + 0x44]
cmp eax, 7
jbe 0x415e5b
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x415e51
lea edx, [eax + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415e36
test eax, eax
jne 0x415e68
mov eax, 2
xor edx, edx
jmp 0x415ec0
mov dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
jbe 0x415e5f
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x415e88
lea edx, [eax + 1]
mov dword [ebx + 0x30], edx
mov edx, dword [ebx + 0x48]
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x415e6f
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x415ea5
lea ecx, [edi + 1]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x48]
mov byte [edi], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
ja 0x415e92
xor edx, 0xffff
dec eax
je 0x415d7f
mov ecx, dword [ebx + 0x44]
mov edi, edx
shl edi, cl
add ecx, 0x10
or dword [ebx + 0x48], edi
mov dword [ebx + 0x44], ecx
jmp 0x415ead
call sub.msvcrt.dll__assert
lea edx, [ebx + 0x8192]
xor eax, eax
mov ecx, 0x90
mov edi, edx
lea edx, [ebx + 0x83d2]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x9273]
mov dword [ebx + 0x38], 8
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0x9272]
inc dword [ebx + 0x64]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x3c]
add dword [ebx + 0x40], eax
sub ebp, esi
mov dword [ebx + 0x3c], 0
je 0x415f96
mov ecx, dword [ebx]
lea edx, [ebx + 0x39272]
test ecx, ecx
je 0x415f5e
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x70]
mov esi, dword [ebx + 0x78]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edx
mov dword [esp + 8], eax
call ecx
test eax, eax
jne 0x415f96
mov dword [ebx + 0x6c], 0xffffffff
or eax, 0xffffffff
jmp 0x415f99
cmp esi, edx
jne 0x415f90
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x8c]
mov eax, dword [eax]
sub eax, edx
cmp eax, ebp
jbe 0x415f75
mov eax, ebp
add edx, dword [ebx + 0x74]
mov ecx, eax
mov edi, edx
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x8c], eax
sub ebp, eax
je 0x415f96
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ebp
jmp 0x415f96
add dword [ebx + 0x8c], ebp
mov eax, dword [ebx + 0x5c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret