Function at 0x4037a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
jg 0x426679
mov eax, dword [edi]
mov dword [edi + 4], 0
mov byte [eax], 0
mov byte [ebp - 2], 0
cmp dword [esi + 8], 0
je 0x426699
xor ebx, ebx
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 8]
je 0x4038bf
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov cl, byte [eax + edx]
mov byte [ebp + ebx - 1], cl
inc ebx
inc eax
mov dword [esi + 0xc], eax
cmp ebx, 1
jb 0x4037d2
xor ecx, ecx
add dword [esi + 0x10], ebx
adc dword [esi + 0x14], ecx
cmp ebx, ecx
je 0x4038f1
mov bl, byte [ebp - 1]
cmp bl, 0xd
je 0x403843
cmp bl, 0xa
je 0x40385f
mov eax, dword [edi + 0xc]
cmp dword [eax], 1
mov byte [ebp - 2], 1
jg 0x4266bd
mov eax, dword [edi + 4]
add eax, 2
cmp dword [edi + 8], eax
jb 0x403867
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov byte [ecx + edx], bl
inc dword [edi + 4]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
jmp 0x4037c6
lea edx, [ebp - 1]
push edx
mov ebx, 1
call fcn.00403910
test eax, eax
je 0x40385f
cmp byte [ebp - 1], 0xa
jne 0x4267b6
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x41c2
jae 0x4266f3
lea edx, [eax + eax]
mov dword [edi + 8], edx
mov eax, dword [edi + 8]
cmp eax, ecx
je 0x4267ac
add eax, 0xf
and eax, 0xfffffff0
push eax
mov dword [edi + 8], eax
call fcn.004115d7
mov ecx, dword [edi]
add esp, 4
test ecx, ecx
je 0x4038b8
mov edx, dword [edi + 4]
inc edx
push edx
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00410e60
mov eax, dword [edi]
push eax
call fcn.004111dc
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [edi], eax
jmp 0x40382d
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0xc]
push edx
push 0x10000
push eax
push ecx
call dword [0x4821b4]
test eax, eax
je 0x4037f5
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x4037f7
jmp 0x4266b2
cmp byte [ebp - 2], 0
jne 0x40385f
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
add byte [ebx + 0x4a7f34], ah
mov dword [0x4a7f38], eax
mov word [0x4a7f3c], ax
mov eax, 0x4a7f24
ret
in al, dx
sub esp, 0x14
mov dword [ebp - 0xc], ebx
pushal
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
cmp ecx, 0
je 0x4266f9
mov eax, ecx
dec eax
imul eax, eax, 0x18
add eax, 0x30
add edx, eax
mov eax, dword [edx + 0xc]
cmp eax, 1
je 0x4266ee
mov eax, dword [edx + 0x10]
cmp eax, 4
je 0x4266e9
mov eax, dword [edx + 4]
push eax
mov eax, dword [edx]
push eax
jmp 0x4266f1
mov eax, dword [edx]
push eax
jmp 0x4266f1
lea eax, [edx]
push eax
dec ecx
je 0x4266f9
add eax, 0xeb18ea83
xlatb
sub edx, 0x18
jmp 0x4266d0
mov eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edx + 4]
cmp eax, 1
je 0x426711
mov ecx, dword [edx + 8]
add ecx, esp
mov dword [ebp - 4], ecx
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x42675d
mov eax, dword [edx + 0x20]
cmp eax, 0xa
je 0x426737
cmp eax, 9
jne 0x426743
mov edx, dword [edx]
call edx
mov edx, dword [ebp + 8]
fstp dword [edx + 0x18]
jmp 0x426767
mov edx, dword [edx]
call edx
mov edx, dword [ebp + 8]
fstp qword [edx + 0x18]
jmp 0x426767
mov eax, dword [edx + 0x28]
cmp eax, 4
je 0x42675d
mov edx, dword [edx]
call edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
jmp 0x426767
mov edx, dword [edx]
call edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
cmp dword [ebp - 4], esp
je 0x426776
mov eax, 0
mov dword [ebp - 8], eax
jmp 0x426789
mov ecx, dword [edx + 0xc]
cmp ecx, 0
je 0x426789
mov eax, dword [edx + 4]
cmp eax, 1
jne 0x426789
add esp, dword [edx + 8]
popal
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 8], edx
mov ecx, dword [edx + 0xc]
cmp ecx, 0
je 0x4267e2
sub eax, dword [ebx + 0x5d8d30c2]
or byte [ebx - 0x77cefbe], cl
add al, 0x74
push cs
add edx, 0x30
lea ebx, [ebp + 8]