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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 8], 0
je 0x41247a
push esi
call fcn.0042ae40
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4112fc
mov eax, dword [esi + 0xc]
test eax, 0x1000
je 0x411278
and eax, 0xffffefff
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x210]
push esi
call eax
add esp, 4
test eax, eax
jne 0x411278
push str.Error_post_encoding_before_directory_write
jmp 0x412137
mov eax, dword [esi + 0x22c]
push esi
call eax
add esp, 4
cmp dword [esi + 0x260], 0
jle 0x4112aa
test byte [esi + 0xc], 0x40
je 0x4112aa
push esi
call fcn.0041dc90
add esp, 4
test eax, eax
jne 0x4112aa
push str.Error_flushing_data_before_directory_write
jmp 0x412137
test dword [esi + 0xc], 0x200
je 0x4112f8
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x4112f8
push eax
call sub.MSVCR110.dll_free
add esp, 4
mov dword [esi + 0x24c], 0
mov dword [esi + 0x260], 0
mov dword [esi + 0x250], 0
mov dword [esi + 0x254], 0
mov dword [esi + 0x258], 0
and dword [esi + 0xc], 0xffffffaf
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
lea esp, [esp]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x411cf8
test byte [esi + 0x28], 2
je 0x411364
push dword [esi + 0x38]
lea eax, [esp + 0x18]
push 0x100
push edi
push eax
push esi
call fcn.00412d30
add esp, 0x14
test eax, eax
je 0x412220
push dword [esi + 0x3c]
lea eax, [esp + 0x18]
push 0x101
push edi
push eax
push esi
call fcn.00412d30
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x28], 4
je 0x4113a8
push dword [esi + 0x44]
lea eax, [esp + 0x18]
push 0x142
push edi
push eax
push esi
call fcn.00412d30
add esp, 0x14
test eax, eax
je 0x412220
push dword [esi + 0x48]
lea eax, [esp + 0x18]
push 0x143
push edi
push eax
push esi
call fcn.00412d30
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x28], 8
je 0x41141a
movss xmm0, dword [esi + 0x74]
cvtps2pd xmm0, xmm0
test edi, edi
jne 0x4113c0
inc dword [esp + 0x14]
jmp 0x4113e4
sub esp, 8
lea eax, [esp + 0x1c]
movsd qword [esp], xmm0
push 0x11a
push edi
push eax
push esi
call fcn.00413780
add esp, 0x18
test eax, eax
je 0x412220
movss xmm0, dword [esi + 0x78]
cvtps2pd xmm0, xmm0
test edi, edi
jne 0x4113f6
inc dword [esp + 0x14]
jmp 0x41141a
sub esp, 8
lea eax, [esp + 0x1c]
movsd qword [esp], xmm0
push 0x11b
push edi
push eax
push esi
call fcn.00413780
add esp, 0x18
test eax, eax
je 0x412220
test byte [esi + 0x28], 0x10
je 0x411488
movss xmm0, dword [esi + 0x80]
cvtps2pd xmm0, xmm0
test edi, edi
jne 0x411435
inc dword [esp + 0x14]
jmp 0x411459
sub esp, 8
lea eax, [esp + 0x1c]
movsd qword [esp], xmm0
push 0x11e
push edi
push eax
push esi
call fcn.00413780
add esp, 0x18
test eax, eax
je 0x412220
movss xmm0, dword [esi + 0x84]
cvtps2pd xmm0, xmm0
sub esp, 8
lea eax, [esp + 0x1c]
movsd qword [esp], xmm0
push 0x11f
push edi
push eax
push esi
call fcn.00412c50
add esp, 0x18
test eax, eax
je 0x412220
test byte [esi + 0x28], 0x20
je 0x4114ad
push dword [esi + 0x50]
lea eax, [esp + 0x18]
push 0xfe
push edi
push eax
push esi
call fcn.00412b70
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x28], 0x40
je 0x4114d4
movzx eax, word [esi + 0x54]
push eax
push 0x102
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a80
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x28], 0x80
je 0x4114fb
movzx eax, word [esi + 0x58]
push eax
push 0x103
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x100
je 0x411525
movzx eax, word [esi + 0x5a]
push eax
push 0x106
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x200
je 0x41154f
movzx eax, word [esi + 0x5c]
push eax
push 0x107
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x400
je 0x411579
movzx eax, word [esi + 0x5e]
push eax
push 0x10a
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x8000
je 0x4115a3
movzx eax, word [esi + 0x60]
push eax
push 0x112
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x10000
je 0x4115cd
movzx eax, word [esi + 0x62]
push eax
push 0x115
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x20000
je 0x4115f5
push dword [esi + 0x64]
lea eax, [esp + 0x18]
push 0x116
push edi
push eax
push esi
call fcn.00412d30
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x40000
je 0x41161f
movzx eax, word [esi + 0x68]
push eax
push 0x118
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a80
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x80000
je 0x411649
movzx eax, word [esi + 0x6a]
push eax
push 0x119
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a80
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x100000
je 0x411673
movzx eax, word [esi + 0x7e]
push eax
push 0x11c
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x400000
je 0x41169d
movzx eax, word [esi + 0x7c]
push eax
push 0x128
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x800000
je 0x4116ea
lea ebx, [esi + 0x88]
test edi, edi
jne 0x4116b6
inc dword [esp + 0x14]
jmp 0x4116ea
test byte [esi + 0xc], 0x80
je 0x4116c7
push 2
push ebx
call fcn.0041e140
add esp, 8
push ebx
push 4
push 2
push 3
push 0x129
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00413e20
add esp, 0x20
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x1000000
je 0x41172b
test dword [esi + 0xc], 0x400
push dword [esi + 0xb0]
lea eax, [esp + 0x18]
push dword [esi + 0xa8]
jne 0x411713
push 0x117
jmp 0x411718
push 0x145
push edi
push eax
push esi
call fcn.00412dd0
add esp, 0x18
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x2000000
je 0x41176c
test dword [esi + 0xc], 0x400
push dword [esi + 0xac]
lea eax, [esp + 0x18]
push dword [esi + 0xa8]
jne 0x411754
push 0x111
jmp 0x411759
push 0x144
push edi
push eax
push esi
call fcn.00412dd0
add esp, 0x18
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x4000000
je 0x41178c
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00412fb0
add esp, 0xc
test eax, eax
je 0x412220
test dword [esi + 0x28], 0x80000000
je 0x4117e7
cmp word [esi + 0x9c], 0
je 0x4117e7
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push 0x152
push esi
call fcn.0040e600
movzx eax, word [esp + 0x20]
add esp, 0x10
test edi, edi
jne 0x4117c6
inc dword [esp + 0x14]
jmp 0x4117e7
push dword [esp + 0x24]
push eax
push 0x152
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413470
add esp, 0x18
test eax, eax
je 0x412220
test byte [esi + 0x2c], 1
je 0x41180e
movzx eax, word [esi + 0x56]
push eax
push 0x153
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a80
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x2c], 2
je 0x411838
push dword [esi + 0x6c]
movzx eax, word [esi + 0x62]
push eax
push 0x154
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00412540
add esp, 0x18
test eax, eax
je 0x412220
test byte [esi + 0x2c], 4
je 0x411862
push dword [esi + 0x70]
movzx eax, word [esi + 0x62]
push eax
push 0x155
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00412540
add esp, 0x18
test eax, eax
je 0x412220
test byte [esi + 0x2c], 8
je 0x411887
push dword [esi + 0x40]
lea eax, [esp + 0x18]
push 0x80e5
push edi
push eax
push esi
call fcn.00412b70
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x2c], 0x10
je 0x4118ac
push dword [esi + 0x4c]
lea eax, [esp + 0x18]
push 0x80e6
push edi
push eax
push esi
call fcn.00412b70
add esp, 0x14
test eax, eax
je 0x412220
test byte [esi + 0x2c], 0x20
je 0x4118f6
lea ebx, [esi + 0x98]
test edi, edi
jne 0x4118c2
inc dword [esp + 0x14]
jmp 0x4118f6
test byte [esi + 0xc], 0x80
je 0x4118d3
push 2
push ebx
call fcn.0041e140
add esp, 8
push ebx
push 4
push 2
push 3
push 0x141
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00413e20
add esp, 0x20
test eax, eax
je 0x412220
test byte [esi + 0x2c], 0x80
je 0x411940
lea ebx, [esi + 0xc0]
test edi, edi
jne 0x41190c
inc dword [esp + 0x14]
jmp 0x411940
test byte [esi + 0xc], 0x80
je 0x41191d
push 2
push ebx
call fcn.0041e140
add esp, 8
push ebx
push 4
push 2
push 3
push 0x212
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00413e20
add esp, 0x20
test eax, eax
je 0x412220
test dword [esi + 0x2c], 0x100
je 0x41196d
movzx eax, word [esi + 0xc4]
push eax
push 0x213
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00412a00
add esp, 0x14
test eax, eax
je 0x412220
test dword [esi + 0x2c], 0x200
je 0x4119a4
test edi, edi
jne 0x411980
inc dword [esp + 0x14]
jmp 0x4119a4
push dword [esi + 0xd4]
lea eax, [esp + 0x18]
push 6
push 0x214
push edi
push eax
push esi
call fcn.00413900
add esp, 0x18
test eax, eax
je 0x412220
test dword [esi + 0x2c], 0x1000
je 0x4119c4
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00413070
add esp, 0xc
test eax, eax
je 0x412220
test dword [esi + 0x2c], 0x4000
je 0x4119f5
push dword [esi + 0xdc]
lea eax, [esp + 0x18]
push dword [esi + 0xd8]
push 0x14d
push edi
push eax
push esi
call fcn.00412900
add esp, 0x18
test eax, eax
je 0x412220
test dword [esi + 0x2c], 0x20000
je 0x411a15
push edi
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004131c0
add esp, 0xc
test eax, eax
je 0x412220
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp dword [esi + 0x294], ebx
jbe 0x411cf8
jmp 0x411a30
mov eax, dword [esi + 0x290]
mov ebx, dword [eax + ebx*4]
movzx eax, word [ebx + 0x18]
cmp eax, 0x42
jb 0x411ce3
mov edx, eax
mov ecx, eax
and ecx, 0x1f
mov eax, 1
shl eax, cl
shr edx, 5
test dword [esi + edx*4 + 0x28], eax
je 0x411ce3
mov eax, dword [ebx + 0x14]
dec eax
cmp eax, 0x27
ja case.0x411a75.2
movzx eax, byte [eax + 0x4124c8]
jmp dword [eax*4 + 0x4124b4]
cmp dword [ebx + 8], 2
je 0x411a9a
push 0x283
push 0x452698
push str.o__field_typeTIFF_ASCII
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp word [ebx + 4], 0xffff
je 0x411ab9
push 0x284
push 0x4526ec
push str.o__field_readcountTIFF_VARIABLE
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp byte [ebx + 0x1b], 0
je 0x411ad7
push 0x285
push 0x45277c
push 0x45270c
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push dword [ebx]
push esi
call fcn.0040b4b0
mov edx, dword [esp + 0x34]
mov ecx, edx
add esp, 0xc
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411af4
sub ecx, dword [esp + 0x2c]
movzx eax, word [ebx]
push edx
push ecx
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00412900
add esp, 0x18
test eax, eax
je 0x412220
jmp 0x411ce3
cmp dword [ebx + 8], 3
je 0x411b3f
push 0x28f
push 0x4527ac
push str.o__field_typeTIFF_SHORT
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp word [ebx + 4], 1
je 0x411b5e
push 0x290
push 0x452800
push 0x452820
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp byte [ebx + 0x1b], 0
je 0x411b7c
push 0x291
push 0x45284c
push 0x45286c
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [ebx]
push esi
call fcn.0040b4b0
push dword [esp + 0x3c]
movzx eax, word [ebx]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00412a00
add esp, 0x20
test eax, eax
je 0x412220
jmp 0x411ce3
cmp dword [ebx + 8], 4
je 0x411bcb
push 0x29a
push 0x452898
push str.o__field_typeTIFF_LONG
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp word [ebx + 4], 1
je 0x411bea
push 0x29b
push 0x4528ec
push str.o__field_readcount1
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp byte [ebx + 0x1b], 0
je 0x411c08
push 0x29c
push 0x452938
push str.o__field_passcount0
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push dword [ebx]
push esi
call fcn.0040b4b0
push dword [esp + 0x40]
movzx eax, word [ebx]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00412b70
add esp, 0x20
test eax, eax
je 0x412220
jmp 0x411ce3
cmp dword [ebx + 8], 7
je 0x411c57
push 0x2a6
push 0x452984
push str.o__field_typeTIFF_UNDEFINED
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp word [ebx + 4], 0xfffd
je 0x411c76
push 0x2a7
push 0x4529e0
push str.o__field_readcountTIFF_VARIABLE2
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
cmp byte [ebx + 0x1b], 1
je 0x411c94
push 0x2a8
push 0x452a48
push str.o__field_passcount1
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebx]
push esi
call fcn.0040b4b0
push dword [esp + 0x48]
movzx eax, word [ebx]
push dword [esp + 0x50]
push eax
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00412940
add esp, 0x28
test eax, eax
je 0x412220
jmp 0x411ce3
push 0x2af
push 0x452a94
push 0x452ab4
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esi + 0x294]
jb 0x411a30
cmp dword [esi + 0xe0], 0
mov dword [esp + 0x20], 0
jbe 0x411ff9
xor ebx, ebx
nop
mov ecx, dword [esi + 0xe4]
mov edx, dword [ecx + ebx]
mov eax, dword [edx + 8]
dec eax
cmp eax, 0x11
ja case.0x411d26.14
jmp dword [eax*4 + 0x4124f0]
mov eax, dword [ecx + ebx + 4]
movzx edx, word [edx]
test edi, edi
jne 0x411d41
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push eax
push eax
push 2
push edx
push edi
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00413e20
add esp, 0x20
test eax, eax
je 0x412220
jmp 0x411fe1
mov eax, dword [ecx + ebx + 4]
movzx edx, word [edx]
test edi, edi
jne 0x411d7a
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push eax
push eax
push 7
jmp 0x411d49
mov eax, dword [ecx + ebx + 4]
movzx edx, word [edx]
test edi, edi
jne 0x411d98
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push eax
push eax
push 1
jmp 0x411d49
mov eax, dword [ecx + ebx + 4]
movzx edx, word [edx]
test edi, edi
jne 0x411db6
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push eax
push eax
push 6
jmp 0x411d49
movzx eax, word [edx]
test edi, edi
jne 0x411dd0
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413470
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411dfd
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004134d0
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411e2a
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413580
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411e57
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004135f0
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411e84
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413660
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411eb1
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004136f0
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411ede
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413900
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411f0b
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413ac0
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411f38
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413c40
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411f62
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413cb0
add esp, 0x18
jmp 0x411d59
movzx eax, word [edx]
test edi, edi
jne 0x411f8c
inc dword [esp + 0x14]
jmp 0x411fe1
push dword [ecx + ebx + 8]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00413d20
add esp, 0x18
jmp 0x411d59
push dword [ecx + ebx + 8]
movzx eax, word [edx]
push dword [ecx + ebx + 4]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00412ec0
add esp, 0x18
jmp 0x411d59
push 0x2fb
push 0x452b84
push 0x452ba4
call dword [sym.imp.MSVCR110.dll__wassert]
add esp, 0xc
mov eax, dword [esp + 0x20]
inc eax
add ebx, 0xc
mov dword [esp + 0x20], eax
cmp eax, dword [esi + 0xe0]
jb 0x411d10
test edi, edi
jne 0x412153
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0040adf0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x412132
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412044
mov ecx, dword [esi + 0x10]
or ecx, dword [esi + 0x14]
jne 0x41206a
push esi
call fcn.004140b0
add esp, 4
test eax, eax
je 0x412220
jmp 0x41206a
mov eax, dword [esi + 0x280]
push 2
push 0
push 0
push dword [esi + 0x274]
call eax
add esp, 0x10
add eax, 1
adc edx, 0
and eax, 0xfffffffe
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x41207c
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
and edx, 0x80000
jne 0x412097
lea eax, [eax + eax*2]
lea eax, [eax*4 + 6]
jmp 0x4120a1
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, eax
add ecx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov eax, 0
adc eax, ebx
mov dword [esi + 0x1d0], ecx
mov dword [esi + 0x1d4], eax
test edx, edx
jne 0x4120d2
mov eax, ecx
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x1d4], edx
mov edx, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x1d0]
cmp edx, ebx
jb 0x412128
ja 0x4120e9
cmp ecx, dword [esi + 0x10]
jb 0x412128
test edx, edx
jb 0x412128
ja 0x4120f5
cmp ecx, dword [esp + 0x18]
jb 0x412128
mov eax, ecx
and eax, 1
or eax, 0
je 0x412111
add ecx, 1
adc edx, 0
mov dword [esi + 0x1d0], ecx
mov dword [esi + 0x1d4], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x411310
inc word [esi + 0x1c0]
jmp 0x411310
push 0x452c1c
jmp 0x41220d
push 0x452ba8
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.0041b990
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4121f2
test dword [esi + 0x2c], 0x20000
je 0x4121f2
mov eax, dword [esi + 0x1e0]
or eax, dword [esi + 0x1e4]
jne 0x4121f2
xor ebx, ebx
mov eax, edi
mov ecx, 0x14a
mov dword [esp + 0x20], eax
cmp ebx, dword [esp + 0x14]
jb 0x4121ad
push 0x329
push 0x452c74
push str.na_ndir
call dword [sym.imp.MSVCR110.dll__wassert]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, 0x14a
cmp word [eax], cx
je 0x4121b8
inc ebx
add eax, 0x18
jmp 0x412182
xor eax, eax
test dword [esi + 0xc], 0x80000
jne 0x4121d4
lea ecx, [ebx + ebx*2]
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0xa
jmp 0x4121e3
lea ecx, [ebx + ebx*4]
shl ecx, 2
add ecx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
add ecx, 0x14
adc eax, 0
mov dword [esi + 0x1e4], eax
mov dword [esi + 0x1e0], ecx
push dword [esp + 0x18]
call fcn.0040adf0
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x41223a
push 0x452ca4
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.0041b990
add esp, 0xc
test edi, edi
je 0x4124ab
push edi
call sub.MSVCR110.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi + 0xc], 0x80000
jne 0x412328
mov ax, word [esp + 0x14]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x41225e
push ebx
call fcn.0041e070
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 2
mov dword [esp + 0x14], eax
test eax, eax
je 0x4122f9
lea eax, [edi + 8]
mov dword [esp + 0x3c], eax
mov edi, eax
lea ebx, [ebx]
mov ax, word [edi - 8]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x412296
push ebx
call fcn.0041e070
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x4122af
push ebx
call fcn.0041e070
add esp, 4
mov eax, dword [edi]
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
add ebx, 2
push ebx
call fcn.0040ae30
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4122d7
push ebx
call fcn.0041e080
add esp, 4
push 4
lea eax, [edi + 8]
push eax
add ebx, 4
push ebx
call fcn.0040ae30
add esp, 0xc
add ebx, 4
add edi, 0x18
dec dword [esp + 0x14]
jne 0x412280
mov edi, dword [esp + 0x1c]
test byte [esi + 0xc], 0x80
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
je 0x412313
lea eax, [esp + 0x10]
push eax
call fcn.0041e080
add esp, 4
push 4
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040ae30
add esp, 0xc
jmp 0x4123ed
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], 0
test byte [esi + 0xc], 0x80
je 0x412344
push ebx
call fcn.0041e0a0
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4123cf
lea eax, [edi + 8]
mov dword [esp + 0x3c], eax
mov edi, eax
lea esp, [esp]
mov ax, word [edi - 8]
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x412376
push ebx
call fcn.0041e070
add esp, 4
mov ax, word [edi - 6]
add ebx, 2
mov word [ebx], ax
test byte [esi + 0xc], 0x80
je 0x41238f
push ebx
call fcn.0041e070
add esp, 4
push 8
add ebx, 2
push edi
push ebx
call fcn.0040ae30
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4123ad
push ebx
call fcn.0041e0a0
add esp, 4
push 8
lea eax, [edi + 8]
push eax
add ebx, 8
push ebx
call fcn.0040ae30
add esp, 0xc
add ebx, 8
add edi, 0x18
dec dword [esp + 0x14]
jne 0x412360
mov edi, dword [esp + 0x1c]
push 8
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.0040ae30
add esp, 0xc
test byte [esi + 0xc], 0x80
je 0x4123ed
push ebx
call fcn.0041e0a0
add esp, 4
push edi
call sub.MSVCR110.dll_free
mov eax, dword [esi + 0x280]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0x274]
call eax
add esp, 0x14
cmp eax, dword [esi + 0x10]
jne 0x412486
cmp edx, dword [esi + 0x14]
jne 0x412486
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x27c]
push ebx
push edi
push dword [esi + 0x274]
call eax
add esp, 0xc
cmp eax, ebx
je 0x41244c
push str.IO_error_writing_directory
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.0041b990
jmp 0x41249f
push edi
call sub.MSVCR110.dll_free
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x41247a
push esi
call fcn.0040ba10
mov ecx, dword [esi + 0x234]
and dword [esi + 0xc], 0xffdffff7
push esi
call ecx
push esi
call fcn.0040bc00
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x452da8
push str.TIFFWriteDirectorySec
push dword [esi + 0x274]
call fcn.0041b990
mov edi, dword [esp + 0x2c]
add esp, 0xc
push edi
call sub.MSVCR110.dll_free
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret