Function at 0x410b9e
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
lea edi, [ebp - 0x1c]
push esi
mov ecx, 3
push ebx
sub esp, 0x118
lea esi, [ebp - 0xd4]
mov dword [ebp - 0x108], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0xf0], 0
rep stosd dword es:[edi], eax
mov dword [ebp - 0xd4], 0
test edx, edx
mov dword [ebp - 0xd0], 0
je 0x410659
cmp byte [edx], 0
mov ebx, edx
jne 0x410678
push str.DISPLAY
call sub.msvcrt.dll_getenv
mov dword [ebp - 0xfc], 0
mov ebx, eax
test ebx, ebx
pop eax
je 0x411328
cmp dword [0x4b4e00], 0
jne 0x410689
push 0
call fcn.0041be60
pop edi
cmp dword [0x4b4e20], 0
jne 0x41069a
push 0
call fcn.0041bec0
pop ecx
push 0x53c
push 1
call sub.msvcrt.dll_calloc
mov dword [ebp - 0xfc], 0
mov edi, eax
test edi, edi
pop eax
pop edx
je 0x411328
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xf0]
push eax
push ebx
call fcn.00419ff5
mov dword [edi + 0x534], eax
add esp, 0x20
test eax, eax
je 0x410a62
push eax
call fcn.0041b04c
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xf0]
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0x80], eax
mov dword [edi + 0x4c0], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0x4d8], 0
mov dword [edi + 0xbc], 0
mov dword [edi], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xc0], 0x41194c
mov dword [edi + 0xc4], 0x41194c
mov dword [edi + 0x2c0], 0x411953
mov dword [edi + 0x2c4], 0x411953
pop ebx
mov dword [ebp - 0x100], 2
mov edx, dword [ebp - 0x100]
mov dword [edi + edx*4 + 0xc0], 0x41195a
mov dword [edi + edx*4 + 0x2c0], 0
inc edx
cmp edx, 0x22
mov dword [ebp - 0x100], edx
jle 0x4107b6
mov dword [ebp - 0x100], 0x23
mov ecx, dword [ebp - 0x100]
mov dword [edi + ecx*4 + 0xc0], 0x41194c
mov dword [edi + ecx*4 + 0x2c0], 0x411953
inc ecx
cmp ecx, 0x7f
mov dword [ebp - 0x100], ecx
jle 0x4107e8
mov dword [edi + 0x24], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x4dc], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x4c8], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x4e0], 0
mov dword [edi + 0x4f0], 0
mov dword [edi + 0x4ec], 0
mov dword [edi + 4], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x4f8], 0
mov dword [edi + 0x4f4], 0
mov dword [edi + 0x4fc], 0
mov dword [edi + 0x500], 0
mov dword [edi + 0x4cc], 0
mov dword [edi + 0x4c4], 0
mov dword [edi + 0x4d0], 0
mov dword [edi + 0x504], 0
mov dword [edi + 0x508], 1
mov dword [edi + 0x510], 0
mov dword [edi + 0x514], 0
mov dword [edi + 0x518], 0
mov dword [edi + 0x51c], 0
mov dword [edi + 0x520], 0
mov dword [edi + 0x50c], 0
mov dword [edi + 0x52c], 0
mov dword [edi + 0x530], 0
mov dword [edi + 0x48], 0xb
mov dword [edi + 0x2c], 0x41142f
mov dword [edi + 0x4d4], 0x4134b0
mov dword [edi + 0x7c], 0
mov eax, dword [ebp - 0xe8]
mov dword [edi + 0x524], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x84], eax
mov eax, dword [0x4b0364]
mov dword [edi + 0x5c], 0
mov dword [edi + 0x64], 0x4b0368
test eax, eax
je 0x410989
push edi
call eax
pop ecx
test eax, eax
jne 0x41128d
push edi
call fcn.00411340
pop edx
test eax, eax
je 0x41128d
push str.XLIBBUFFERSIZE
call sub.msvcrt.dll_getenv
pop ebx
test eax, eax
mov ebx, 0x4000
je 0x4109cb
push 0xa
push 0
push eax
call sub.msvcrt.dll_strtol
mov ebx, eax
add esp, 0xc
shl ebx, 0xa
cmp ebx, 0x7ff
jg 0x4109cb
mov ebx, 0x800
push ebx
push 1
call sub.msvcrt.dll_calloc
mov dword [edi + 0x68], eax
test eax, eax
mov dword [edi + 0x6c], eax
pop edx
pop ecx
je 0x41128d
mov dword [edi + 0x54], 0
add eax, ebx
mov dword [edi + 0x70], eax
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
push 0x24
push 1
call sub.msvcrt.dll_calloc
mov dword [edi + 4], eax
test eax, eax
pop edx
pop ecx
je 0x41128d
push esi
mov eax, dword [ebp - 0xe0]
push dword [ebp - 0xdc]
mov byte [ebp - 0x1c], 0x6c
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xd8]
push dword [ebp - 0xe4]
mov word [ebp - 0x1a], 0xb
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x1c]
push eax
push edi
mov word [ebp - 0x18], 0
call fcn.00419d9d
add esp, 0x14
test eax, eax
mov ebx, eax
jns 0x410a6d
push dword [edi + 0x534]
call fcn.00419d83
push edi
call sub.msvcrt.dll_free
jmp 0x411296
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x410a7e
push eax
call sub.msvcrt.dll_free
pop eax
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x410a8f
push eax
call sub.msvcrt.dll_free
pop eax
mov eax, dword [edi + 0x4d0]
test eax, eax
je 0x410a9d
push edi
call dword [eax]
pop ecx
test ebx, ebx
jne 0x410aad
push 8
push esi
push edi
call fcn.0041285c
add esp, 0xc
movzx eax, byte [ebp - 0xd4]
cmp al, 1
jbe 0x410ad1
movzx eax, al
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.Xlib:_unexpected_connection_setup_reply_from_server__type__d._r_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
jmp 0x410a57
movzx eax, word [ebp - 0xd2]
cmp ax, 0xb
je 0x410afc
movzx eax, ax
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0xb
push str.Xlib:_client_uses_different_protocol_version___d__than_server___d___r_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
jmp 0x410a57
movzx eax, word [ebp - 0xce]
shl eax, 2
push eax
mov dword [ebp - 0x110], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x108], eax
test eax, eax
pop edx
je 0x410a57
push dword [ebp - 0x110]
push dword [ebp - 0x108]
push edi
call fcn.0041285c
add esp, 0xc
cmp byte [ebp - 0xd4], 1
je 0x410baf
push dword [ebp - 0xf0]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str.Xlib:_connection_to___s__refused_by_server_r_nXlib:
push eax
call sub.msvcrt.dll_fprintf
movzx edx, byte [ebp - 0xd3]
add esp, 0xc
mov eax, dword [sym.imp.msvcrt.dll__iob]
cmp edx, dword [ebp - 0x110]
jle 0x410b81
add eax, 0x40
push eax
push str.Xlib:_Broken_initial_reply:_length_of_reason___length_of_packet_r_n
call sub.msvcrt.dll_fputs
pop esi
pop eax
jmp 0x410bd1
add eax, 0x40
push eax
push edx
push 1
push dword [ebp - 0x108]
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 2
push 1
push 0x46a862
call sub.msvcrt.dll_fwrite
add esp, 0x20
jmp 0x410bd1
cmp dword [ebp - 0x110], 0x20
jge 0x410bdc
push dword [ebp - 0x110]
push str.Xlib:_Broken_initial_reply:_Too_short___ld__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
mov edx, dword [ebp - 0x108]
jmp 0x41128f
movzx eax, word [ebp - 0xd2]
mov edx, dword [ebp - 0x108]
mov ecx, edx
mov dword [edi + 0x10], eax
movzx eax, word [ebp - 0xd0]
mov dword [edi + 0x14], eax
mov eax, dword [edx]
mov dword [edi + 0x4c], eax
mov eax, dword [edx + 4]
mov dword [edi + 0x1c], eax
mov edx, dword [edx + 8]
test edx, edx
mov dword [edi + 0x20], edx
movzx eax, byte [ecx + 0x1a]
mov dword [edi + 0x98], eax
movzx eax, byte [ecx + 0x1b]
mov dword [edi + 0x9c], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x90], eax
movzx eax, byte [ecx + 0x15]
mov dword [edi + 0x40], eax
movzx eax, byte [ecx + 0x14]
mov dword [edi + 0x88], eax
movzx eax, byte [ecx + 0x16]
mov dword [edi + 0x30], eax
movzx eax, byte [ecx + 0x18]
mov dword [edi + 0x34], eax
movzx eax, byte [ecx + 0x19]
mov dword [edi + 0x38], eax
movzx eax, byte [ecx + 0x17]
mov dword [edi + 0x28], 0
mov dword [edi + 0x3c], eax
movzx eax, word [ecx + 0x12]
mov dword [edi + 0x74], eax
mov eax, edx
jne 0x410c77
push dword [ebp - 0xf0]
push str.Xlib:_connection_to___s__invalid_setup_n
jmp 0x410bc3
test al, 1
jne 0x410c87
xor edx, edx
shr eax, 1
inc edx
test al, 1
je 0x410c7d
mov dword [edi + 0x28], edx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
mov edx, dword [ebp - 0x108]
shr eax, cl
sub eax, 5
mov dword [edi + 0x528], eax
movzx eax, word [edx + 0x10]
cmp ax, 0x100
ja 0x41128f
movzx eax, ax
inc eax
push eax
call sub.msvcrt.dll_malloc
mov dword [edi + 0x18], eax
test eax, eax
pop ebx
je 0x410bd1
mov ecx, dword [ebp - 0x108]
movzx ecx, word [ecx + 0x10]
mov esi, ecx
add esi, 3
mov dword [ebp - 0x10c], ecx
and esi, 0xfffffffc
lea edx, [esi + 0x20]
cmp dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
jl 0x410bb8
push dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x108]
add ebx, 0x20
push ebx
add ebx, esi
push eax
call sub.msvcrt.dll_strncpy
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x10c]
mov byte [eax + ecx], 0
mov eax, dword [edi + 0x40]
shl eax, 4
push eax
call sub.msvcrt.dll_malloc
mov dword [edi + 0x44], eax
add esp, 0x10
test eax, eax
je 0x410bd1
mov ecx, dword [ebp - 0x114]
mov edx, dword [edi + 0x40]
lea ecx, [ecx + edx*8]
cmp dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
jl 0x410bb8
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x100], edx
jge 0x410d96
mov esi, eax
xor ecx, ecx
movzx eax, byte [ebx]
lea edx, [esi + ecx]
add ecx, 0x10
mov dword [edx + 4], eax
movzx eax, byte [ebx + 1]
mov dword [edx + 8], eax
movzx eax, byte [ebx + 2]
add ebx, 8
inc dword [ebp - 0x100]
mov dword [edx], 0
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x100]
cmp eax, dword [edi + 0x40]
jl 0x410d62
imul eax, dword [edi + 0x88], 0x50
push eax
call sub.msvcrt.dll_malloc
mov dword [edi + 0x8c], eax
test eax, eax
pop ecx
je 0x410bd1
mov dword [ebp - 0x100], 0
xor edx, edx
cmp edx, dword [edi + 0x88]
jge 0x411001
imul esi, dword [ebp - 0x100], 0x50
add dword [ebp - 0x114], 0x28
mov ecx, dword [ebp - 0x114]
add esi, dword [edi + 0x8c]
cmp dword [ebp - 0x110], ecx
jl 0x410bb8
mov dword [esi + 4], edi
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x118], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x4c], eax
movzx eax, word [ebx + 0x14]
mov dword [esi + 0xc], eax
movzx eax, word [ebx + 0x16]
mov dword [esi + 0x10], eax
movzx eax, word [ebx + 0x18]
mov dword [esi + 0x14], eax
movzx eax, word [ebx + 0x1a]
mov dword [esi + 0x18], eax
movzx eax, word [ebx + 0x1c]
mov dword [esi + 0x40], eax
movzx eax, word [ebx + 0x1e]
mov dword [esi + 0x3c], eax
movzx eax, byte [ebx + 0x24]
mov dword [esi + 0x44], eax
movzx eax, byte [ebx + 0x25]
mov dword [esi + 0x48], eax
movzx eax, byte [ebx + 0x26]
mov dword [esi + 0x24], eax
movzx eax, byte [ebx + 0x27]
add ebx, 0x28
mov dword [esi + 0x1c], eax
imul eax, eax, 0xc
mov dword [esi], 0
push eax
call sub.msvcrt.dll_malloc
mov dword [esi + 0x20], eax
test eax, eax
pop edx
je 0x410bd1
mov dword [ebp - 0x104], 0
xor edx, edx
cmp edx, dword [esi + 0x1c]
jge 0x410fdf
mov dword [ebp - 0x124], 0
add dword [ebp - 0x114], 8
mov ecx, dword [ebp - 0x124]
add ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x114]
cmp dword [ebp - 0x110], eax
mov dword [ebp - 0x11c], ecx
jl 0x410bb8
movzx eax, byte [ebx]
mov dword [ecx], eax
movzx eax, word [ebx + 2]
add ebx, 8
test eax, eax
mov dword [ecx + 4], eax
jle 0x410fb6
shl eax, 5
push eax
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x11c]
test eax, eax
mov dword [edx + 8], eax
pop ecx
je 0x410bd1
xor ecx, ecx
cmp ecx, dword [edx + 4]
jge 0x410f77
mov dword [ebp - 0x120], 0
add dword [ebp - 0x114], 0x18
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
add edx, dword [eax + 8]
mov eax, dword [ebp - 0x114]
cmp dword [ebp - 0x110], eax
jl 0x410bb8
mov eax, dword [ebx]
inc ecx
mov dword [edx + 4], eax
movzx eax, byte [ebx + 4]
mov dword [edx + 8], eax
movzx eax, byte [ebx + 5]
mov dword [edx], 0
add dword [ebp - 0x120], 0x20
mov dword [edx + 0x18], eax
movzx eax, word [ebx + 6]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 0x10]
add ebx, 0x18
mov dword [edx + 0x14], eax
mov edx, dword [ebp - 0x11c]
cmp ecx, dword [edx + 4]
jl 0x410f07
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx], 0x20
jne 0x410fc3
push str.XLIB_SKIP_ARGB_VISUALS
call sub.msvcrt.dll_getenv
pop edx
test eax, eax
je 0x410fc3
mov eax, dword [ebp - 0x11c]
push dword [eax + 8]
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x11c]
mov dword [edx + 8], 0
mov dword [edx + 4], 0
pop eax
jmp 0x410fc3
mov ecx, dword [ebp - 0x11c]
mov dword [ecx + 8], 0
inc dword [ebp - 0x104]
add dword [ebp - 0x124], 0xc
mov eax, dword [ebp - 0x104]
cmp eax, dword [esi + 0x1c]
jl 0x410e9c
push dword [ebp - 0x118]
push edi
call fcn.00413d01
mov dword [esi + 0x28], eax
pop esi
inc dword [ebp - 0x100]
pop eax
mov edx, dword [ebp - 0x100]
jmp 0x410dbe
mov ecx, dword [ebp - 0x110]
cmp dword [ebp - 0x114], ecx
je 0x41102e
push ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x114]
add eax, 0x40
push str.Xlib:_Did_not_parse_entire_setup_message:_parsed:__ld__message:__ld_n
push eax
call sub.msvcrt.dll_fprintf
jmp 0x410bd1
push dword [ebp - 0x108]
call sub.msvcrt.dll_free
pop ebx
mov eax, dword [edi + 0x88]
cmp dword [ebp - 0xe8], eax
jge 0x41128d
mov eax, dword [edi + 0x4d0]
test eax, eax
je 0x41105b
push edi
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x100], 0
xor eax, eax
cmp eax, dword [edi + 0x88]
jge 0x4110b9
xor esi, esi
mov ebx, dword [edi + 0x8c]
add ebx, esi
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 0xc
push dword [ebx + 8]
push edi
call fcn.00419b81
mov dword [ebx + 0x2c], eax
add esp, 0x10
test eax, eax
je 0x41128d
inc dword [ebp - 0x100]
add esi, 0x50
mov edx, dword [ebp - 0x100]
cmp edx, dword [edi + 0x88]
jl 0x411071
mov eax, dword [0x465064]
push dword [eax]
push edi
call fcn.004196f1
pop eax
mov eax, dword [edi + 0x4d0]
pop edx
test eax, eax
je 0x4110d6
push edi
call dword [eax]
pop esi
mov eax, dword [edi + 0x6c]
add eax, 8
cmp eax, dword [edi + 0x70]
jbe 0x4110e8
push edi
call fcn.004130cb
pop ebx
mov edx, dword [edi + 0x6c]
lea esi, [ebp - 0xf8]
mov dword [edi + 0x64], edx
mov byte [edx], 0x62
mov eax, dword [edi + 0x60]
mov dword [ebp - 0xf4], 0
mov ecx, dword [edi + 0x6c]
mov dword [ebp - 0xa8], 0x410280
inc eax
lea ebx, [ecx + 8]
mov dword [edi + 0x60], eax
mov dword [ebp - 0xf8], eax
mov eax, dword [edi + 0x4c8]
mov dword [edi + 0x6c], ebx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
mov dword [edi + 0x4c8], eax
lea eax, [ecx + 0x14]
cmp eax, dword [edi + 0x70]
mov word [edx + 4], 0xc
mov word [edx + 2], 5
ja 0x41116e
mov dword [ecx + 8], 0x2d474942
mov dword [ebx + 4], 0x55514552
mov dword [ebx + 8], 0x53545345
add dword [edi + 0x6c], 0xc
jmp 0x41117e
push 0xc
push str.BIG_REQUESTS
push edi
call fcn.00413171
add esp, 0xc
mov eax, dword [edi + 0x6c]
add eax, 0x18
cmp eax, dword [edi + 0x70]
jbe 0x411190
push edi
call fcn.004130cb
pop ecx
mov ebx, dword [edi + 0x6c]
mov dword [edi + 0x64], ebx
mov byte [ebx], 0x14
mov eax, dword [edi + 0x8c]
inc dword [edi + 0x60]
add dword [edi + 0x6c], 0x18
mov word [ebx + 2], 6
mov eax, dword [eax + 8]
mov dword [ebx + 8], 0x17
mov dword [ebx + 0xc], 0x1f
mov dword [ebx + 4], eax
lea eax, [ebp - 0x9c]
mov byte [ebx + 1], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x5f5e100
push 0
push 0
push eax
push edi
call fcn.00412ddc
add esp, 0x10
test eax, eax
je 0x411271
cmp byte [ebp - 0x9b], 8
jne 0x41124b
cmp dword [ebp - 0x94], 0x1f
jne 0x41124b
mov edx, dword [ebp - 0x8c]
cmp edx, 0xffffffff
je 0x41124b
mov eax, dword [ebx + 0x14]
shl eax, 2
cmp edx, eax
ja 0x41124b
lea eax, [edx + 1]
push eax
call sub.msvcrt.dll_malloc
mov dword [edi + 0xac], eax
test eax, eax
pop edx
je 0x41124b
push dword [ebp - 0x8c]
push eax
push edi
call fcn.00412765
mov edx, dword [edi + 0xac]
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov byte [edx + eax], 0
jmp 0x411271
cmp dword [ebp - 0x94], 0
je 0x411271
movzx eax, byte [ebp - 0x9b]
shr al, 3
movzx eax, al
imul eax, dword [ebp - 0x8c]
push eax
push edi
call fcn.0041292c
pop ecx
pop ebx
lea eax, [ebp - 0xac]
cmp dword [edi + 0x4c8], eax
jne 0x4112a5
mov eax, dword [ebp - 0xac]
mov dword [edi + 0x4c8], eax
jmp 0x4112ae
xor edx, edx
mov eax, edi
call fcn.004105d6
mov dword [ebp - 0xfc], 0
jmp 0x411328
push eax
push edi
call fcn.00418578
pop eax
pop edx
cmp dword [esi + 4], 0
je 0x411309
mov eax, dword [edi + 0x6c]
add eax, 4
cmp eax, dword [edi + 0x70]
jbe 0x4112c6
push edi
call fcn.004130cb
pop ebx
mov edx, dword [edi + 0x6c]
mov dword [edi + 0x64], edx
mov byte [edx], 0
mov eax, dword [esi + 4]
add dword [edi + 0x6c], 4
inc dword [edi + 0x60]
mov word [edx + 2], 1
mov byte [edx], al
lea eax, [ebp - 0xcc]
mov byte [edx + 1], 0
push 0
push 0
push eax
push edi
call fcn.00412ddc
add esp, 0x10
test eax, eax
je 0x411309
mov eax, dword [ebp - 0xc4]
mov dword [edi + 0x4cc], eax
mov eax, dword [edi + 0x4d0]
test eax, eax
je 0x411318
push edi
call dword [eax + 4]
pop ecx
push 0
push 0
push edi
call fcn.004189cc
mov dword [ebp - 0xfc], edi
mov eax, dword [ebp - 0xfc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret