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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x52c1ec
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x10f4
call fcn.005124e0
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x10f0], eax
push ebx
push esi
push edi
mov eax, dword [0x59c6b8]
xor eax, esp
push eax
lea eax, [esp + 0x1138]
mov dword fs:[0], eax
fldz
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x40]
fst qword [esp + 0xbc]
mov edi, dword [ebp + 0x1c]
fst qword [esp + 0xb4]
mov esi, ecx
fst qword [esp + 0xac]
mov ecx, dword [ebp + 0x3c]
fstp qword [esp + 0xa4]
mov dword [esp + 0x94], ecx
mov ecx, dword [0x59da88]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0xec], 0xd
call fcn.004376f0
test eax, eax
jne 0x4539a9
push 0x80
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 0
test eax, eax
je 0x45391e
mov ecx, eax
call fcn.004513f0
mov ebx, eax
jmp 0x453920
xor ebx, ebx
mov eax, dword [esp + 0x90]
fld qword [0x534990]
mov ecx, dword [esp + 0x94]
mov edx, dword [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push edi
sub esp, 0x10
fst qword [esp + 8]
mov dword [esp + 0x1178], 0xffffffff
fstp qword [esp]
push ebx
call fcn.0044fc30
cmp dword [ebx + 0x70], 0
jne 0x453986
cmp dword [ebx + 0x74], 0
mov dword [esp + 0x60], 0
je 0x45398e
mov dword [esp + 0x60], 1
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
cmp dword [esp + 0x60], 0
jne 0x4539a9
mov eax, 1
jmp 0x454575
mov ecx, dword [0x59da88]
call fcn.00437660
fstp qword [esp + 0x7c]
mov ecx, dword [0x59da88]
call fcn.00437690
mov ecx, dword [0x59da88]
mov ebx, eax
mov dword [esp + 0x78], ebx
call fcn.004375d0
fild dword [ebp + 0x34]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x98], eax
lea eax, [ebp + 0x24]
push eax
lea ecx, [esp + 0xa8]
push ecx
sub esp, 0x20
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x74]
fild dword [ebp + 0x30]
fstp qword [esp + 0x10]
fild dword [ebp + 0x2c]
fstp qword [esp + 8]
fild dword [ebp + 0x28]
fstp qword [esp]
push 0
fld qword [esp + 0xa8]
push edx
push edi
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.0044f680
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0xc]
add edi, dword [ecx + 0xa8]
cmp edi, 0x168
jl 0x453a43
sub edi, 0x168
jmp 0x453a4d
test edi, edi
jns 0x453a4d
add edi, 0x168
push 0x2a0
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 1
test eax, eax
je 0x453a91
fld qword [esp + 0x7c]
push 0
push edi
lea edx, [esp + 0xac]
push edx
sub esp, 0x10
fst qword [esp + 8]
mov ecx, eax
fstp qword [esp]
call fcn.0042f180
mov edi, eax
jmp 0x453a93
xor edi, edi
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 8]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x2c]
mov ecx, esi
mov dword [esp + 0x1148], 0xffffffff
call eax
test edi, edi
je 0x453ac4
mov ecx, edi
call fcn.004330d0
push edi
call fcn.0051163f
add esp, 4
test ebx, ebx
jne 0x453b8a
mov eax, dword [esi + 0x68]
test eax, eax
je 0x453b8a
push 0x110
cmp eax, 1
jne 0x453b38
mov dword [esp + 0x40], ebx
call fcn.00511699
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x1140], 3
test edi, edi
je 0x453b2b
mov ecx, dword [0x59da88]
call fcn.004377e0
push eax
push ebx
lea ecx, [esp + 0x44]
push ecx
push ebx
push 1
push 4
mov ecx, edi
call fcn.00467230
mov ecx, eax
mov dword [esp + 0x74], ecx
jmp 0x453bdb
xor eax, eax
mov ecx, eax
mov dword [esp + 0x74], ecx
jmp 0x453bdb
mov al, 0xff
mov word [esp + 0x41], 0xffff
mov byte [esp + 0x40], al
call fcn.00511699
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x1140], 4
test edi, edi
je 0x453b2b
mov ecx, dword [0x59da88]
call fcn.004377e0
push eax
push 0
lea edx, [esp + 0x44]
push edx
push 0
push 1
push 2
mov ecx, edi
call fcn.00467230
mov ecx, eax
mov dword [esp + 0x74], ecx
jmp 0x453bdb
push 0x110
mov byte [esp + 0x40], 0xff
call fcn.00511699
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x1140], 2
test edi, edi
je 0x453bd3
mov ecx, dword [0x59da88]
call fcn.004377e0
push eax
push 0
lea eax, [esp + 0x44]
push eax
push 0
push 1
push 1
mov ecx, edi
call fcn.00467230
jmp 0x453bd5
xor eax, eax
mov ecx, eax
mov dword [esp + 0x74], eax
mov edx, dword [esi + 0xc0]
push edx
mov dword [esp + 0x1144], 0xffffffff
call fcn.00463be0
fld qword [esi + 0x150]
fld qword [esp + 0x7c]
xor ebx, ebx
fmul st(1), st(0)
fxch st(1)
fst qword [esp + 0xcc]
fld qword [esi + 0x158]
fmulp st(2)
fxch st(1)
fst qword [esp + 0xc4]
cmp dword [ebp + 0x30], ebx
jl 0x453c2a
mov edi, dword [ebp + 0x34]
cmp edi, ebx
jge 0x453cb6
cmp dword [ebp + 0x20], ebx
je 0x453c58
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
fld qword [eax]
fst qword [esp + 0xa4]
fld qword [eax + 8]
fst qword [esp + 0xac]
fld qword [eax + 0x10]
fst qword [esp + 0xb4]
fld qword [eax + 0x18]
jmp 0x453c80
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 0xc]
fld qword [eax + 0x20]
fst qword [esp + 0xa4]
fld qword [eax + 0x28]
fst qword [esp + 0xac]
fld qword [eax + 0x30]
fst qword [esp + 0xb4]
fld qword [eax + 0x38]
fst qword [esp + 0xbc]
mov dword [ebp + 0x28], ebx
fxch st(1)
fsubrp st(3)
fxch st(2)
fmulp st(4)
fld qword [0x534990]
fdiv st(4), st(0)
fxch st(4)
call fcn.00512de0
fsubp st(1)
mov dword [ebp + 0x30], eax
fmulp st(1)
fdivrp st(1)
call fcn.00512de0
mov edi, eax
mov dword [ebp + 0x34], edi
jmp 0x453cbd
mov ebx, dword [ebp + 0x2c]
fstp st(1)
fstp st(0)
fild dword [ebp + 0x30]
mov ecx, dword [0x59da88]
fst qword [esp + 0xdc]
fimul dword [ebp + 0x34]
fstp qword [esp + 0x54]
call fcn.004376c0
mov dword [esp + 0x84], eax
fild dword [esp + 0x84]
sub esp, 8
fdivr qword [esp + 0x5c]
fstp qword [esp]
call fcn.005134b0
add esp, 8
call fcn.00512de0
mov ecx, eax
lea eax, [ecx + edi - 1]
cdq
idiv ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x60], eax
cmp ebx, edi
jge 0x45455a
fild dword [esp + 0x60]
fstp qword [esp + 0xd4]
fild dword [ebp + 0x28]
fstp qword [esp + 0xe4]
fld qword [esp + 0xd4]
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x4c]
lea edx, [ebp + 0x24]
push edx
lea eax, [esp + 0xa8]
push eax
sub esp, 0x20
fstp qword [esp + 0x18]
mov ecx, edi
fld qword [esp + 0x104]
fstp qword [esp + 0x10]
fild dword [esp + 0x98]
fstp qword [esp + 8]
fld qword [esp + 0x10c]
fstp qword [esp]
push 0
fld qword [esp + 0xf0]
push ebx
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x110]
fstp qword [esp]
call fcn.0044f680
mov edx, dword [esp + 0x90]
fld qword [esp + 0xb4]
mov eax, dword [esp + 0x94]
fld qword [esp + 0xa4]
mov ecx, dword [edi + 0xc]
fsub st(1), st(0)
mov ecx, dword [ecx + 0xa8]
fxch st(1)
push edx
mov edx, dword [ebp + 0x38]
fstp qword [esp + 0x68]
push eax
fld qword [esp + 0xc4]
mov eax, dword [esp + 0x68]
fld qword [esp + 0xb4]
push edx
fsub st(1), st(0)
mov edx, dword [ebp + 0x30]
fxch st(1)
push eax
mov eax, dword [esp + 0x80]
fstp qword [esp + 0xac]
push edx
fxch st(1)
mov edx, dword [ebp + 0x28]
fstp qword [esp + 0x98]
push eax
mov eax, dword [ebp + 0x24]
fstp qword [esp + 0x94]
push edx
fld qword [esp + 0xe0]
push eax
mov eax, 0x168
sub eax, ecx
cdq
mov ecx, 0x168
idiv ecx
push ebx
mov ebx, dword [esp + 0x98]
mov ecx, edi
push edx
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x104]
fstp qword [esp]
push ebx
call fcn.0044fc30
mov ebx, dword [ebx + 0xc4]
mov ecx, dword [esi + 0x19c]
mov edx, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], edx
test ecx, ecx
je 0x453e67
push str.gsave_n
call fcn.004a1e60
jmp 0x453e80
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push 6
push str.gsave_n
push eax
call ecx
add esp, 0xc
fld qword [esp + 0x7c]
sub esp, 0x30
fstp qword [esp + 0x28]
fld qword [esp + 0xb4]
fstp qword [esp + 0x20]
fld qword [esp + 0xcc]
fstp qword [esp + 0x18]
fldz
fst qword [esp + 0x10]
fstp qword [esp + 8]
fld qword [esp + 0x94]
fstp qword [esp]
push str._0:.6g_1:.6g_2:.6g_3:.6g_4:.6g_5:.6g__concat_n
push esi
call fcn.00451ba0
mov eax, dword [esi + 0x68]
add esp, 0x38
cmp eax, 5
ja case.default.0x453ecf
jmp dword [eax*4 + 0x45459c]
mov eax, dword [esp + 0x44]
push edi
mov edx, edi
neg edx
push edx
push eax
push edi
push eax
push str.0:d_1:d_8__2:d_0_0_3:d_0_4:d__pdfIm1_n
push esi
call fcn.00451ba0
lea eax, [edi - 1]
imul eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
add esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x6c], eax
test edi, edi
jle case.default.0x453ecf
mov dword [esp + 0x48], edi
mov edi, eax
nop
cmp dword [esp + 0x44], 0
jle 0x453f72
mov eax, dword [esp + 0x44]
mov dword [esp + 0x64], eax
nop
movzx eax, byte [edi]
push eax
push str.0:02x
push esi
call fcn.00451ba0
inc ebx
add esp, 0xc
inc edi
cmp ebx, 0x20
jne 0x453f6c
mov ecx, dword [esi + 0x19c]
mov byte [esp + 0x38], 0xa
test ecx, ecx
je 0x453f51
push 0xa
call fcn.004a1dd0
jmp 0x453f6a
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 1
lea ecx, [esp + 0x3c]
push ecx
push edx
call eax
add esp, 0xc
xor ebx, ebx
dec dword [esp + 0x64]
jne 0x453f20
dec dword [esp + 0x48]
jne 0x453f10
test ebx, ebx
je case.default.0x453ecf
mov ecx, dword [esi + 0x19c]
mov byte [esp + 0x38], 0xa
test ecx, ecx
je 0x453f9b
push 0xa
call fcn.004a1dd0
jmp case.default.0x453ecf
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 1
lea ecx, [esp + 0x3c]
push ecx
push edx
call eax
add esp, 0xc
jmp case.default.0x453ecf
mov eax, dword [esp + 0x44]
push edi
mov ecx, edi
neg ecx
push ecx
push eax
push edi
push eax
push str.0:d_1:d_8__2:d_0_0_3:d_0_4:d__pdfIm1Sep_n
push esi
call fcn.00451ba0
lea eax, [edi - 1]
imul eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
add esp, 0x1c
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x40], 0
test edi, edi
jle case.default.0x453ecf
mov dword [esp + 0x84], edi
mov ecx, eax
lea edx, [esp + 0x40]
sub ecx, edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x7c], ecx
cmp dword [esp + 0x44], 0
jle 0x4540b9
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x44]
mov bl, byte [esp + eax + 0x40]
lea eax, [esp + eax + 0x40]
add edi, eax
mov dword [esp + 0x9c], edx
lea ecx, [ecx]
movzx eax, byte [edi]
push eax
push str.0:02x
push esi
call fcn.00451ba0
mov eax, dword [esp + 0x70]
or bl, byte [edi]
inc eax
add esp, 0xc
mov dword [esp + 0x64], eax
cmp eax, 0x20
jne 0x45409b
mov ecx, dword [esi + 0x19c]
mov byte [esp + 0x38], 0xa
test ecx, ecx
je 0x45407a
push 0xa
call fcn.004a1dd0
jmp 0x454093
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 1
lea ecx, [esp + 0x3c]
push ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x64], 0
add edi, 4
dec dword [esp + 0x9c]
jne 0x454040
mov eax, dword [esp + 0x48]
lea eax, [esp + eax + 0x40]
mov byte [eax], bl
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, 4
jl 0x454015
sub eax, dword [ebx + 8]
dec dword [esp + 0x84]
mov dword [esp + 0x6c], eax
jne 0x454001
cmp dword [esp + 0x64], 0
je 0x454117
mov ecx, dword [esi + 0x19c]
mov byte [esp + 0x38], 0xa
test ecx, ecx
je 0x4540fe
push 0xa
call fcn.004a1dd0
jmp 0x454117
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 1
lea ecx, [esp + 0x3c]
push ecx
push edx
call eax
add esp, 0xc
cmp byte [esp + 0x40], 0
je 0x454125
or dword [esi + 0x18c], 1
cmp byte [esp + 0x41], 0
je 0x454133
or dword [esi + 0x18c], 2
cmp byte [esp + 0x42], 0
je 0x454141
or dword [esi + 0x18c], 4
cmp byte [esp + 0x43], 0
je case.default.0x453ecf
or dword [esi + 0x18c], 8
jmp case.default.0x453ecf
cmp dword [esp + 0x78], 0
mov ecx, esi
je 0x454168
push str._DeviceGray_setcolorspace_n
jmp 0x45416d
push str._DeviceRGB_setcolorspace_n
call fcn.00451b50
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x454188
push str.___n___ImageType_1_n
call fcn.004a1e60
jmp 0x4541a1
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push 0x12
push str.___n___ImageType_1_n
push ecx
call edx
add esp, 0xc
mov eax, dword [ebx]
push eax
push str.___Width_0:d_n
push esi
call fcn.00451ba0
mov eax, dword [ebx + 4]
push eax
push str.___Height_0:d_n
push esi
call fcn.00451ba0
mov ecx, dword [esp + 0x5c]
push edi
mov eax, edi
neg eax
push eax
push ecx
push str.___ImageMatrix__0:d_0_0_1:d_0_2:d__n
push esi
call fcn.00451ba0
mov ecx, dword [esi + 0x19c]
add esp, 0x2c
test ecx, ecx
je 0x4541ed
push str.___BitsPerComponent_8_n
call fcn.004a1e60
jmp 0x454206
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 0x16
push str.___BitsPerComponent_8_n
push edx
call eax
add esp, 0xc
cmp dword [esp + 0x78], 0
mov ecx, esi
je 0x454216
push str.___Decode__0_1__n
jmp 0x45421b
push str.___Decode__0_1_0_1_0_1__n
call fcn.00451b50
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x454236
push str.___DataSource_currentfile_n
call fcn.004a1e60
jmp 0x45424f
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push 0x1a
push str.___DataSource_currentfile_n
push ecx
call edx
add esp, 0xc
mov ecx, dword [0x59da88]
call fcn.004375a0
mov ecx, esi
test eax, eax
je 0x454267
push str._____ASCIIHexDecode_filter_n
jmp 0x45426c
push str._____ASCII85Decode_filter_n
call fcn.00451b50
cmp dword [esp + 0x98], 0
mov ecx, esi
je 0x454284
push str._____LZWDecode_filter_n
jmp 0x454289
push str._____RunLengthDecode_filter_n
call fcn.00451b50
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x4542a4
push 0x54a2a0
call fcn.004a1e60
jmp 0x4542bd
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push 3
push 0x54a2a0
push eax
call ecx
add esp, 0xc
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x4542d3
push str.image_n
call fcn.004a1e60
jmp 0x4542ec
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push 6
push str.image_n
push edx
call eax
add esp, 0xc
mov dword [esp + 0xec], 5
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
lea ebx, [edi - 1]
imul ebx, ecx
push 0x30
add ebx, eax
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 5
test eax, eax
je 0x454352
xor edx, edx
cmp dword [esp + 0x78], edx
lea ecx, [esp + 0xec]
sete dl
push ecx
mov ecx, eax
lea edx, [edx + edx + 1]
imul edx, edi
imul edx, dword [esp + 0x48]
push edx
push 0
push ebx
call fcn.0046b1e0
mov edi, eax
mov dword [esp + 0x64], edi
jmp 0x45435e
mov dword [esp + 0x64], 0
mov edi, dword [esp + 0x64]
or ebx, 0xffffffff
cmp dword [esp + 0x98], 0
mov dword [esp + 0x1140], ebx
je 0x45439c
push 0xd024
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 6
test eax, eax
je 0x4543c6
push edi
mov ecx, eax
call fcn.0046d3c0
jmp 0x4543c8
push 0xa0
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 7
test eax, eax
je 0x4543c6
push edi
mov ecx, eax
call fcn.0046d170
jmp 0x4543c8
xor eax, eax
mov ecx, dword [0x59da88]
mov edi, eax
mov dword [esp + 0x1140], ebx
call fcn.004375a0
test eax, eax
je 0x454407
push 0x20
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 8
test eax, eax
je 0x45442e
push edi
mov ecx, eax
call fcn.0046cd10
jmp 0x454430
push 0x24
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x1140], 9
test eax, eax
je 0x45442e
push edi
mov ecx, eax
call fcn.0046ce00
jmp 0x454430
xor eax, eax
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
mov dword [esp + 0x1140], ebx
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push 0x1000
lea ecx, [esp + 0x100]
push ecx
mov ecx, edi
call edx
test eax, eax
jle 0x4544ae
lea esp, [esp]
mov ecx, dword [esi + 0x19c]
push eax
test ecx, ecx
je 0x45447a
lea eax, [esp + 0x100]
push eax
call fcn.004a1ec0
jmp 0x454494
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
lea ecx, [esp + 0x100]
push ecx
push edx
call eax
add esp, 0xc
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push 0x1000
lea eax, [esp + 0x100]
push eax
mov ecx, edi
call edx
test eax, eax
jg 0x454460
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x4544d1
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x19c]
mov byte [esp + 0x50], 0xa
test ecx, ecx
je 0x4544e9
push 0xa
call fcn.004a1dd0
jmp 0x454502
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push 1
lea eax, [esp + 0x54]
push eax
push ecx
call edx
add esp, 0xc
mov eax, dword [esp + 0x78]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0xf
or dword [esi + 0x18c], eax
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x45452c
push str.grestore_n
call fcn.004a1e60
jmp 0x454545
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push 9
push str.grestore_n
push ecx
call edx
add esp, 0xc
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x60]
mov dword [esp + 0x70], eax
cmp eax, dword [ebp + 0x34]
jl 0x453d2c
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x45456a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x1138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10f0]
xor ecx, esp
call fcn.00511afd
mov esp, ebp
pop ebp
ret 0x3c