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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x49bb5a
mov eax, dword [edi + 0xc]
test ah, 0x10
je 0x49af52
and ah, 0xef
push edi
mov dword [edi + 0xc], eax
call dword [edi + 0x16c]
add esp, 4
test eax, eax
jne 0x49af52
mov eax, dword [edi]
push str.Error_post_encoding_before_directory_write
push eax
call fcn.00480170
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [edi + 0x188]
mov eax, dword [edi + 0x1b4]
add esp, 4
cmp eax, ebx
jle 0x49af8c
push edi
call fcn.00480880
add esp, 4
test eax, eax
jne 0x49af8c
mov ecx, dword [edi]
push str.Error_flushing_data_before_directory_write
push ecx
call fcn.00480170
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
test ah, 2
je 0x49afb3
mov eax, dword [edi + 0x1a8]
cmp eax, ebx
je 0x49afb3
push eax
call fcn.0047fdd0
add esp, 4
mov dword [edi + 0x1a8], ebx
mov dword [edi + 0x1b4], ebx
mov eax, dword [edi + 0xc]
xor edx, edx
and al, 0xaf
mov dword [esp + 0x1c], edx
mov dword [edi + 0xc], eax
xor eax, eax
mov ecx, eax
mov esi, 1
and ecx, 0x1f
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [edi + ecx*4 + 0x18], esi
je 0x49afe4
cmp eax, 5
sbb ecx, ecx
neg ecx
inc ecx
add edx, ecx
inc eax
cmp eax, 0x5f
jbe 0x49afc3
lea esi, [edx + edx*2]
mov dword [esp + 0x1c], edx
shl esi, 2
push esi
mov dword [esp + 0x40], esi
call fcn.0047fdb0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x49b022
mov edx, dword [edi]
push str.Cannot_write_directory__out_of_space
push edx
call fcn.00480170
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10], ebx
jne 0x49b0de
mov eax, dword [edi + 0x1c8]
push 2
push ebx
push eax
call dword [edi + 0x1d4]
add esp, 0xc
inc eax
and al, 0xfe
mov dword [edi + 0x10], eax
mov dword [esp + 0x14], eax
test byte [edi + 0xc], 0x80
je 0x49b05b
lea ecx, [esp + 0x14]
push ecx
call fcn.0049a780
add esp, 4
mov eax, dword [edi + 0xc]
test ah, 0x20
je 0x49b21e
mov edx, dword [edi + 0x14c]
mov eax, dword [edi + 0x1c8]
push ebx
push edx
push eax
call dword [edi + 0x1d4]
mov edx, dword [edi + 0x1c8]
lea ecx, [esp + 0x20]
push 4
push ecx
push edx
call dword [edi + 0x1d0]
add esp, 0x18
cmp eax, 4
je 0x49b0c3
mov eax, dword [edi]
push eax
push str._s:_Error_writing_SubIFD_directory_link
push str.TIFFLinkDirectory
call fcn.00480170
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
call fcn.0047fdd0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec word [edi + 0x148]
cmp word [edi + 0x148], bx
je 0x49b210
add dword [edi + 0x14c], 4
mov ecx, dword [edi + 0x10]
lea eax, [ecx + esi + 6]
test al, 1
mov dword [edi + 0x144], eax
je 0x49b0f6
inc eax
mov dword [edi + 0x144], eax
mov edx, dword [edi + 0x144]
mov eax, dword [edi + 0x1c8]
push 0
push edx
push eax
call dword [edi + 0x1d4]
inc word [edi + 0x138]
mov esi, dword [esp + 0x38]
lea ebx, [edi + 0x18]
push 0xc
lea ecx, [esp + 0x5c]
push ebx
push ecx
call fcn.0047feb0
mov eax, dword [esp + 0x64]
add esp, 0x18
test eax, 0x80000000
je 0x49b15c
cmp word [ebx + 0x78], 0
jne 0x49b15c
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x3c]
and edx, 0x7fffffff
dec ecx
sub eax, 0xc
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x1e8]
mov dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x48], eax
jle 0x49ba0f
mov edx, 1
mov eax, dword [edi + 0x1e4]
mov ecx, dword [esp + 0x20]
mov ebx, edx
mov ecx, dword [eax + ecx*4]
xor eax, eax
mov dword [esp + 0x14], ecx
mov ax, word [ecx + 0xc]
mov ecx, eax
and ecx, 0x1f
shl ebx, cl
mov ecx, eax
shr ecx, 5
test dword [esp + ecx*4 + 0x4c], ebx
je 0x49b9f5
dec eax
cmp eax, 0x30
ja case.0x49b1bc.15
xor ecx, ecx
mov cl, byte [eax + 0x49bba4]
jmp dword [ecx*4 + 0x49bb68]
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
and eax, 0x400
mov ebx, dword [ecx]
neg eax
sbb eax, eax
and eax, 0x33
add eax, 0x111
cmp eax, ebx
jne 0x49b9f5
mov edx, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc8]
mov word [esi], ax
cmp ecx, 1
mov word [esi + 2], 4
mov dword [esi + 4], ecx
jne 0x49b395
mov edx, dword [edx]
mov dword [esi + 8], edx
jmp 0x49b9c6
mov eax, dword [edi + 0xc]
and ah, 0xdf
mov dword [edi + 0xc], eax
jmp 0x49b0de
mov eax, dword [edi + 0x124]
cmp eax, ebx
jne 0x49b26e
mov edx, dword [edi + 0x1c8]
mov ecx, dword [edi + 0x10]
push ebx
push 4
push edx
mov dword [edi + 0x124], ecx
call dword [edi + 0x1d4]
mov ecx, dword [edi + 0x1c8]
lea eax, [esp + 0x20]
push 4
push eax
push ecx
call dword [edi + 0x1d0]
add esp, 0x18
cmp eax, 4
je 0x49b0de
mov edx, dword [edi]
push str.Error_writing_TIFF_header
push edx
jmp 0x49bafd
push ebx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [edi + 0x1c8]
push eax
call dword [edi + 0x1d4]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
jne 0x49b337
mov edx, dword [edi + 0x1c8]
lea ecx, [esp + 0x20]
push 2
push ecx
push edx
call dword [edi + 0x1cc]
add esp, 0xc
cmp eax, 2
jne 0x49b337
test byte [edi + 0xc], 0x80
je 0x49b2c3
lea eax, [esp + 0x20]
push eax
call fcn.0049a760
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x1c8]
and eax, 0xffff
push 1
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
push edx
call dword [edi + 0x1d4]
mov ecx, dword [edi + 0x1c8]
lea eax, [esp + 0x1c]
push 4
push eax
push ecx
call dword [edi + 0x1cc]
add esp, 0x18
cmp eax, 4
jne 0x49b346
test byte [edi + 0xc], 0x80
je 0x49b311
lea edx, [esp + 0x10]
push edx
call fcn.0049a780
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x49b355
push ebx
push eax
mov eax, dword [edi + 0x1c8]
push eax
call dword [edi + 0x1d4]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
je 0x49b290
push str.Error_fetching_directory_count
push str.TIFFLinkDirectory
jmp 0x49bafd
push str.Error_fetching_directory_link
push str.TIFFLinkDirectory
jmp 0x49bafd
mov ecx, dword [edi + 0x1c8]
push 1
push 0xfffffffffffffffc
push ecx
call dword [edi + 0x1d4]
mov eax, dword [edi + 0x1c8]
lea edx, [esp + 0x20]
push 4
push edx
push eax
call dword [edi + 0x1d0]
add esp, 0x18
cmp eax, 4
je 0x49b0de
push str.Error_writing_directory_link
push str.TIFFLinkDirectory
jmp 0x49bafd
push edx
jmp 0x49b83f
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
and eax, 0x400
mov ebx, dword [ecx]
neg eax
sbb eax, eax
and eax, 0x2e
add eax, 0x117
cmp eax, ebx
jne 0x49b9f5
mov edx, dword [edi + 0xd0]
jmp 0x49b1eb
mov ecx, dword [edi + 0x50]
mov word [esi], 0x116
jmp 0x49b4d1
mov word [esi + 2], 3
cmp word [edi + 0x120], 0x4d4d
jne 0x49b569
mov eax, dword [edi + 0x130]
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [edi + 0x12c]
mov ecx, dword [ecx + 0xc]
shl eax, cl
mov dword [esi + 8], eax
jmp 0x49b9c6
mov word [esi], 0x140
mov word [esi + 2], 3
mov cl, byte [edi + 0x40]
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], 0
lea ebx, [edi + 0x80]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x144]
mov dword [esp + 0x18], ecx
mov edx, dword [ebx]
push edx
push esi
push edi
call fcn.0049c670
add esp, 0xc
test eax, eax
je 0x49bb05
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jb 0x49b438
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*2]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp 0x49b9c6
mov ecx, dword [edi + 0x24]
mov eax, esi
add esi, 0xc
cmp ecx, 0xffff
mov word [eax], 0x100
mov dword [eax + 4], edx
jbe 0x49b496
mov word [eax + 2], 4
mov dword [eax + 8], ecx
jmp 0x49b4c9
mov word [eax + 2], 3
mov edx, dword [edi + 0x130]
cmp word [edi + 0x120], 0x4d4d
mov edx, dword [edx + 0xc]
jne 0x49b4bf
and edx, ecx
mov ecx, dword [edi + 0x12c]
mov ecx, dword [ecx + 0xc]
shl edx, cl
jmp 0x49b4c1
and edx, ecx
mov dword [eax + 8], edx
mov edx, 1
mov ecx, dword [edi + 0x28]
mov word [esi], 0x101
cmp ecx, 0xffff
mov dword [esi + 4], edx
jbe 0x49b3d5
mov word [esi + 2], 4
mov dword [esi + 8], ecx
jmp 0x49b9c6
mov ecx, dword [edi + 0x30]
mov eax, esi
add esi, 0xc
cmp ecx, 0xffff
mov word [eax], 0x142
mov dword [eax + 4], edx
jbe 0x49b511
mov word [eax + 2], 4
mov dword [eax + 8], ecx
jmp 0x49b544
mov word [eax + 2], 3
mov edx, dword [edi + 0x130]
cmp word [edi + 0x120], 0x4d4d
mov edx, dword [edx + 0xc]
jne 0x49b53a
and edx, ecx
mov ecx, dword [edi + 0x12c]
mov ecx, dword [ecx + 0xc]
shl edx, cl
jmp 0x49b53c
and edx, ecx
mov dword [eax + 8], edx
mov edx, 1
mov ecx, dword [edi + 0x34]
mov word [esi], 0x143
cmp ecx, 0xffff
mov dword [esi + 4], edx
jbe 0x49b3d5
mov word [esi + 2], 4
mov dword [esi + 8], ecx
jmp 0x49b9c6
mov edx, dword [edi + 0x130]
mov eax, dword [edx + 0xc]
and eax, ecx
mov dword [esi + 8], eax
jmp 0x49b9c6
lea eax, [edi + 0x74]
push eax
push 1
push esi
push 0x11e
push 5
push edi
call fcn.0049c180
add esp, 0x18
test eax, eax
je 0x49bb05
lea ecx, [edi + 0x78]
add esi, 0xc
push ecx
push 1
push esi
push 0x11f
push 5
push edi
call fcn.0049c180
add esp, 0x18
test eax, eax
jmp 0x49b79e
lea edx, [edi + 0x68]
push edx
push 1
push esi
push 0x11a
push 5
push edi
call fcn.0049c180
add esp, 0x18
test eax, eax
je 0x49bb05
lea eax, [edi + 0x6c]
add esi, 0xc
push eax
push 1
push esi
push 0x11b
push 5
push edi
call fcn.0049c180
add esp, 0x18
test eax, eax
jmp 0x49b79e
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov bx, word [edi + 0x4e]
lea eax, [esp + 0x64]
mov edx, dword [ecx]
cmp ebx, 0xa
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jbe 0x49b629
lea ecx, [ebx + ebx]
push ecx
call fcn.0047fdb0
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x32]
push edx
push eax
push edi
call fcn.0047dd70
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ebx, ebx
jle 0x49b660
mov eax, ecx
mov dword [esp + 0x24], ebx
mov dx, word [esp + 0x32]
mov word [eax], dx
mov edx, dword [esp + 0x24]
add eax, 2
dec edx
mov dword [esp + 0x24], edx
jne 0x49b64a
mov ax, word [esp + 0x18]
cmp ebx, 2
mov word [esi], ax
mov word [esi + 2], 3
mov dword [esi + 4], ebx
ja 0x49b6c5
cmp word [edi + 0x120], 0x4d4d
jne 0x49b6a3
xor eax, eax
mov ax, word [ecx]
shl eax, 0x10
cmp ebx, 2
mov dword [esi + 8], eax
jne 0x49b6be
xor edx, edx
mov ebx, 1
mov dx, word [ecx + 2]
or edx, eax
mov dword [esi + 8], edx
jmp 0x49b6da
xor eax, eax
cmp ebx, 2
mov ax, word [ecx]
mov dword [esi + 8], eax
jne 0x49b6be
xor edx, edx
mov dx, word [ecx + 2]
shl edx, 0x10
or edx, eax
mov dword [esi + 8], edx
mov ebx, 1
jmp 0x49b6da
mov eax, dword [esp + 0x10]
push eax
push esi
push edi
call fcn.0049c670
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
lea edx, [esp + 0x64]
cmp ecx, edx
je 0x49b79c
mov eax, dword [esp + 0x10]
push eax
jmp 0x49b794
mov ecx, dword [esp + 0x14]
push edi
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
call fcn.0049a070
xor ebx, ebx
mov dword [esp + 0x44], eax
mov bx, word [edi + 0x4e]
add esp, 4
lea eax, [esp + 0x78]
cmp ebx, 0xa
mov dword [esp + 0x10], eax
jbe 0x49b72e
lea ecx, [ebx*8]
push ecx
call fcn.0047fdb0
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x58]
push edx
push eax
push edi
call fcn.0047dd70
add esp, 0xc
test ebx, ebx
jle 0x49b768
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
add eax, 8
dec ecx
mov dword [esp + 0x18], ecx
jne 0x49b74d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
push eax
push ebx
push esi
push ecx
push edx
push edi
call fcn.0049c2c0
mov ecx, dword [esp + 0x28]
mov ebx, eax
lea eax, [esp + 0x90]
add esp, 0x18
cmp ecx, eax
je 0x49b79c
push ecx
call fcn.0047fdd0
add esp, 4
test ebx, ebx
je 0x49bb05
jmp 0x49b9c6
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x36]
lea ecx, [esp + 0x34]
push eax
mov ebx, dword [edx]
push ecx
push ebx
push edi
call fcn.0047dd70
add esp, 0x10
mov word [esi], bx
mov word [esi + 2], 3
mov dword [esi + 4], 2
cmp word [edi + 0x120], 0x4d4d
jne 0x49b7fe
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x36]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi + 8], edx
jmp 0x49b9c6
mov ecx, dword [esp + 0x36]
mov edx, dword [esp + 0x34]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
mov dword [esi + 8], ecx
jmp 0x49b9c6
mov word [esi], 0x14d
mov word [esi + 2], 2
mov eax, dword [edi + 0x108]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x10c]
cmp eax, 4
jbe 0x49b856
push ecx
push esi
push edi
call fcn.0049c670
add esp, 0xc
test eax, eax
je 0x49bb05
jmp 0x49b9c6
mov eax, dword [esi + 4]
push eax
push ecx
lea ecx, [esi + 8]
push ecx
call fcn.0047feb0
add esp, 0xc
jmp 0x49b9c6
mov cl, byte [edi + 0x40]
mov ebx, 1
shl ebx, cl
xor edx, edx
xor eax, eax
mov dx, word [edi + 0x90]
mov ax, word [edi + 0x4e]
shl ebx, 1
sub eax, edx
js 0x49b895
cmp eax, 1
jle 0x49b8d7
cmp eax, 2
je 0x49b8b7
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi + 0xf4]
push ebx
push eax
push ecx
call fcn.0047fef0
add esp, 0xc
test eax, eax
je 0x49b8b7
mov ebx, 3
jmp 0x49b8dc
mov edx, dword [edi + 0xf8]
mov eax, dword [edi + 0xf4]
push ebx
push edx
push eax
call fcn.0047fef0
add esp, 0xc
mov ebx, 3
test eax, eax
jne 0x49b8dc
mov ebx, 1
mov word [esi], 0x12d
mov word [esi + 2], 3
mov cl, byte [edi + 0x40]
mov edx, 1
shl edx, cl
test ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esi + 4], edx
mov eax, dword [edi + 0x144]
mov dword [esp + 0x40], eax
jbe 0x49b945
lea eax, [edi + 0xf4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push esi
push edi
call fcn.0049c670
add esp, 0xc
test eax, eax
je 0x49bb05
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jb 0x49b914
imul ebx, dword [esi + 4]
mov eax, dword [esp + 0x40]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x49b9c6
mov ecx, dword [esp + 0x14]
push ecx
push esi
push edi
call fcn.0049bbe0
add esp, 0xc
test eax, eax
je 0x49bb05
mov eax, dword [esi + 4]
test eax, eax
jbe 0x49b9c6
mov ecx, dword [edi + 0xc]
or ch, 0x20
mov dword [edi + 0xc], ecx
mov dx, word [esi + 4]
mov word [edi + 0x148], dx
mov eax, dword [esi + 4]
cmp eax, 1
jbe 0x49b99a
mov eax, dword [esi + 8]
mov dword [edi + 0x14c], eax
jmp 0x49b9c6
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x2c]
sub ecx, eax
lea edx, [ecx + esi + 0xa]
mov dword [edi + 0x14c], edx
jmp 0x49b9c6
mov eax, dword [esp + 0x14]
push eax
push esi
push edi
call fcn.0049bbe0
add esp, 0xc
test eax, eax
je 0x49bb05
mov edx, dword [esp + 0x14]
xor ecx, ecx
add esi, 0xc
mov cx, word [edx + 0xc]
mov edx, 1
mov eax, ecx
and ecx, 0x1f
shr eax, 5
shl edx, cl
mov ecx, dword [esp + eax*4 + 0x4c]
lea eax, [esp + eax*4 + 0x4c]
not edx
and ecx, edx
mov edx, 1
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
dec eax
inc ebx
test eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], ebx
jg 0x49b17b
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x28], eax
mov al, byte [edi + 0xc]
test al, 0x80
mov dword [esp + 0x44], ecx
je 0x49ba7b
cmp word [esp + 0x1c], 0
mov esi, dword [esp + 0x2c]
je 0x49ba5c
push 2
push esi
call fcn.0049a7a0
lea edx, [esi + 4]
push 2
push edx
call fcn.0049a7d0
mov eax, dword [esp + 0x38]
add esp, 0x10
add eax, 0xffff
add esi, 0xc
test ax, ax
mov dword [esp + 0x28], eax
jne 0x49ba31
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], eax
call fcn.0049a760
lea edx, [esp + 0x48]
push edx
call fcn.0049a780
add esp, 8
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x1c8]
push 0
push eax
push ecx
call dword [edi + 0x1d4]
mov eax, dword [edi + 0x1c8]
lea edx, [esp + 0x34]
push 2
push edx
push eax
call dword [edi + 0x1d0]
add esp, 0x18
cmp eax, 2
je 0x49bab4
mov ecx, dword [edi]
push str.Error_writing_directory_count
push ecx
jmp 0x49bafd
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov edx, dword [edi + 0x1c8]
push esi
push ebx
push edx
call dword [edi + 0x1d0]
add esp, 0xc
cmp eax, esi
je 0x49bad9
push str.Error_writing_directory_contents
jmp 0x49bafa
mov edx, dword [edi + 0x1c8]
lea ecx, [esp + 0x44]
push 4
push ecx
push edx
call dword [edi + 0x1d0]
add esp, 0xc
cmp eax, 4
je 0x49bb1b
push str.Error_writing_directory_link
mov eax, dword [edi]
push eax
call fcn.00480170
add esp, 8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0047fdd0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0047de30
push ebx
call fcn.0047fdd0
mov ebx, dword [edi + 0xc]
push edi
and ebx, 0xfffffff7
mov dword [edi + 0xc], ebx
call dword [edi + 0x190]
push edi
call fcn.0047e0d0
xor eax, eax
add esp, 0x10
mov dword [edi + 0x10], eax
mov dword [edi + 0x140], eax
or eax, 0xffffffff
mov dword [edi + 0x134], eax
mov dword [edi + 0x13c], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret