Function at 0x438660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x43869c
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x43869c
push 0x15c
push str..pool.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
push 8
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4386b4
jmp fcn.00408a80
xor esi, esi
cmp dword [ebp + 0xc], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jle 0x43886c
cmp edi, ebx
mov dword [eax + 4], ebx
je 0x438a02
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4386e5
jmp fcn.00408a80
push 0x40
push ebx
push esi
call sub.MSVCR80.dll_memset
mov dword [esi], 3
mov dword [esi + 0x10], ebx
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [esi]
add esp, 0xc
sub eax, 1
je 0x43876a
sub eax, 1
je 0x43875e
sub eax, 1
je 0x438752
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x43877d
push 0x6b
push str.._status.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x43877d
push 0x180
push 0x102
jmp 0x438770
push 0x180
push 0x301
jmp 0x438770
push 0x180
push ebx
push edi
call dword [sym.imp.MSVCR80.dll__open]
add esp, 0xc
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jl 0x4387f2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x438787
sub eax, edx
add eax, 1
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x4387ae
jmp fcn.00408a80
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test byte [esi], 1
mov dword [esi + 4], edi
je 0x438843
mov edi, 0x200
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
jne 0x4387e0
jmp fcn.00408a80
mov byte [eax], bl
mov dword [esi + 0x14], edi
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
jmp 0x438843
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x43883c
mov eax, dword [esi]
sub eax, 1
je 0x438826
sub eax, 1
je 0x43881f
sub eax, 1
je 0x438818
mov eax, str.UNDEF
jmp 0x43882b
mov eax, str.READ_WRITE
jmp 0x43882b
mov eax, str.WRITE
jmp 0x43882b
mov eax, str.READ
push eax
push edi
push str.Note:_cannot_open__s_for__s
push 0x40
call fcn.00408640
add esp, 0x10
mov dword [esi + 0x38], 1
test byte [esi], 2
mov eax, dword [esp + 0x10]
je 0x438a02
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [eax], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ebx
mov dword [eax + 4], 1
je 0x438a02
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x438891
jmp fcn.00408a80
push 0x40
push ebx
push esi
call sub.MSVCR80.dll_memset
mov dword [esi], 1
mov dword [esi + 0x10], ebx
or eax, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [esi]
add esp, 0xc
sub eax, 1
je 0x438916
sub eax, 1
je 0x43890a
sub eax, 1
je 0x4388fe
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x438929
push 0x6b
push str.._status.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x438929
push 0x180
push 0x102
jmp 0x43891c
push 0x180
push 0x301
jmp 0x43891c
push 0x180
push ebx
push edi
call dword [sym.imp.MSVCR80.dll__open]
add esp, 0xc
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jl 0x4389ad
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x438933
sub eax, edx
add eax, 1
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x43895a
jmp fcn.00408a80
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test byte [esi], 1
mov dword [esi + 4], edi
je 0x4389fe
mov edi, 0x200
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
jne 0x438990
jmp fcn.00408a80
mov byte [eax], bl
mov dword [esi + 0x14], edi
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [eax], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x4389f7
mov eax, dword [esi]
sub eax, 1
je 0x4389e1
sub eax, 1
je 0x4389da
sub eax, 1
je 0x4389d3
mov eax, str.UNDEF
jmp 0x4389e6
mov eax, str.READ_WRITE
jmp 0x4389e6
mov eax, str.WRITE
jmp 0x4389e6
mov eax, str.READ
push eax
push edi
push str.Note:_cannot_open__s_for__s
push 0x40
call fcn.00408640
add esp, 0x10
mov dword [esi + 0x38], 1
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret