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

Disassembly:
push 0xffffffffffffffff
push 0x52b81b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59c6b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [esp + 0x6c]
mov edi, 1
shl edi, cl
push 0x18
mov dword [esp + 0x3c], edi
call fcn.00511699
add esp, 4
mov dword [esp + 0x44], eax
xor ebp, ebp
mov dword [esp + 0x50], ebp
cmp eax, ebp
je 0x4406c8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.0043bee0
mov dword [esp + 0x64], eax
jmp 0x4406ce
mov dword [esp + 0x64], ebp
mov eax, ebp
mov ecx, dword [eax + 0x10]
imul ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x50], 0xffffffff
push ecx
cmp dword [esp + 0x84], ebp
je 0x4406f1
push 0xff
jmp 0x4406f2
push ebp
push edx
call fcn.00512510
mov esi, dword [esp + 0x64]
add esp, 0xc
cmp esi, ebp
je 0x44071d
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x94]
call fcn.0043fe60
jmp 0x44072e
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x50]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0043b5a0
mov ecx, dword [esp + 0x14]
imul ecx, edi
neg ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0x68], ebp
jbe 0x440ba5
jmp 0x440758
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
test esi, esi
je 0x440776
mov edx, dword [esp + 0x9c]
mov ecx, dword [ebx + 0x94]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0043fe60
jmp 0x440787
mov ecx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x1c]
push edx
call fcn.0043b5a0
mov eax, dword [esp + 0x18]
imul eax, edi
add dword [esp + 0x14], eax
test esi, esi
je 0x4407b0
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, dword [ebx + 0x94]
lea edx, [esp + 0x20]
push edx
call fcn.0043fe60
jmp 0x4407c1
mov eax, dword [ebx + 0x74]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x50]
call fcn.0043b5a0
add ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x2c], edx
jae 0x440ba5
mov edi, edi
cmp edi, 1
jne 0x4407ef
mov dword [esp + 0x18], 0
jmp 0x44081a
test esi, esi
je 0x440809
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x94]
push eax
call fcn.0043b8d0
mov dword [esp + 0x18], eax
jmp 0x44081a
mov ecx, dword [ebx + 0x70]
push ecx
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x1c]
push edx
call fcn.0043b5a0
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x14]
test esi, esi
je 0x440857
mov eax, dword [esp + 0x74]
test eax, eax
je 0x440845
mov ecx, dword [ebx + 0x94]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.0043fe60
mov eax, dword [esp + 0x40]
jmp 0x44086b
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [ebx + 0x94]
call fcn.0043b8d0
jmp 0x44086b
mov edx, dword [ebx + 0x90]
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx + 0x50]
push edx
push eax
call fcn.0043b440
mov ecx, eax
mov dword [esp + 0x60], eax
cmp ecx, dword [esp + 0x70]
jb 0x440896
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push str.Invalid_symbol_number_in_JBIG2_text_region
mov ecx, ebx
call eax
push edx
push eax
push 1
call fcn.00412330
add esp, 0x10
jmp 0x440b26
cmp dword [esp + 0x5c], 0
je 0x4409a1
test esi, esi
je 0x440984
mov esi, dword [ebx + 0x94]
cmp dword [esi + 8], 0
jne 0x4408cb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
inc dword [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 8
dec dword [esi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x58]
shr eax, cl
and eax, 1
mov dword [esp + 0x20], eax
test eax, eax
je 0x4409a9
test esi, esi
je 0x4409ec
mov eax, dword [esp + 0xa0]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x94]
call fcn.0043fe60
mov edx, dword [esp + 0xa4]
mov ecx, dword [ebx + 0x94]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0043fe60
mov ecx, dword [esp + 0xa8]
push ecx
mov ecx, dword [ebx + 0x94]
lea edx, [esp + 0x34]
push edx
call fcn.0043fe60
mov eax, dword [esp + 0xac]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x94]
call fcn.0043fe60
mov edx, dword [esp + 0xb0]
mov ecx, dword [ebx + 0x94]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0043fe60
mov eax, dword [ebx + 0x94]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x50]
call fcn.0043b230
jmp 0x440a39
mov ecx, dword [ebx + 0x8c]
push ecx
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x24]
push edx
call fcn.0043b5a0
mov eax, dword [esp + 0x20]
jmp 0x4408e1
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x60]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x8c]
dec eax
dec ecx
cmp dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x60], ecx
je 0x440ae6
cmp edx, 3
ja case.default.0x4409e5
jmp dword [edx*4 + 0x440bc0]
mov ecx, dword [ebx + 0x84]
push ecx
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x2c]
push edx
call fcn.0043b5a0
mov eax, dword [ebx + 0x88]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x50]
call fcn.0043b5a0
mov edx, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0043b5a0
mov ecx, dword [ebx + 0x80]
push ecx
mov ecx, dword [ebx + 0x50]
lea edx, [esp + 0x38]
push edx
call fcn.0043b5a0
mov eax, dword [esp + 0x28]
test eax, eax
jns 0x440a42
dec eax
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x440a58
dec eax
mov ebp, dword [esp + 0xbc]
mov ecx, dword [esp + 0x7c]
cdq
push ebp
mov ebp, dword [esp + 0xbc]
sub eax, edx
mov edx, dword [esp + 0x64]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add edx, dword [esp + 0x28]
add esi, dword [esp + 0x2c]
push ebp
sar eax, 1
add eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0xc8]
push 0
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0043e410
mov ebp, dword [esp + 0x80]
mov esi, eax
jmp 0x4409b4
mov ecx, dword [esp + 0x84]
push ecx
jmp 0x440ad2
mov ecx, dword [esp + 0x84]
push ecx
sub edi, eax
jmp 0x440ad2
sub edi, eax
mov edx, dword [esp + 0x84]
push edx
mov ecx, dword [esp + 0x68]
push ebp
push edi
push esi
call fcn.0043c1e0
mov ecx, dword [esp + 0x60]
add ebp, ecx
jmp 0x440b11
cmp edx, 3
ja case.default.0x440aeb
jmp dword [edx*4 + 0x440bd0]
sub edi, ecx
mov eax, dword [esp + 0x84]
push eax
mov ecx, dword [esp + 0x68]
push edi
push ebp
push esi
call fcn.0043c1e0
mov eax, dword [esp + 0x80]
add ebp, eax
cmp dword [esp + 0x20], 0
je 0x440b22
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x2c], edi
test esi, esi
je 0x440b63
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x94]
lea edx, [esp + 0x20]
push edx
call fcn.0043fe60
jmp 0x440b74
mov ecx, dword [esp + 0x84]
push ecx
jmp 0x440afc
mov edx, dword [esp + 0x84]
push edx
sub edi, ecx
jmp 0x440afc
mov eax, dword [ebx + 0x78]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x50]
call fcn.0043b5a0
test eax, eax
je 0x440b9b
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x90]
add ebp, edx
mov dword [esp + 0x80], ebp
cmp edi, dword [esp + 0x68]
jae 0x440ba5
mov edi, dword [esp + 0x38]
jmp 0x4407e0
cmp edi, dword [esp + 0x68]
jb 0x440750
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x68