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

Disassembly:
sub esp, 0x78
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x90]
test ebx, ebx
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], esi
je 0x4751d5
test edx, edx
je 0x4751d5
test eax, eax
je 0x4751d5
test ecx, ecx
je 0x4751d5
mov dword [eax], 0
push 0xce4
mov dword [ecx], 0
call fcn.00475c60
mov esi, eax
add esp, 4
test esi, esi
je 0x4751d5
shr eax, 0x10
mov dword [esp + 0x18], eax
movzx eax, si
push 0xc
mov dword [esp + 0x18], eax
call fcn.00475c60
add esp, 4
test eax, eax
mov dword [esi + 0xca4], eax
jne 0x4751ea
push esi
call fcn.00475cc0
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.005aac48
add esp, 0x78
ret 0x1c
push edi
push 0xc
push 0
push eax
call fcn.00475d50
mov edi, dword [ebx + 0x14]
xor eax, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], ax
mov dword [esp + 0x44], eax
mov word [esp + 0x40], 0x4d42
mov dword [esp + 0x4a], 0x436
jne 0x475237
movzx edi, word [ebx + 0xe]
imul edi, dword [ebx + 4]
add edi, 0x1f
shr edi, 5
imul edi, dword [ebx + 8]
add edi, edi
add edi, edi
mov edx, dword [esi + 0xca4]
lea ecx, [edi + 0x436]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xca4]
mov ecx, dword [eax + 8]
push ecx
call fcn.00475c60
mov edx, dword [esi + 0xca4]
mov dword [edx], eax
mov eax, dword [esi + 0xca4]
add esp, 4
cmp dword [eax], 0
jne 0x475290
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call sym.LectoraViewer.exe__SerialImageCleanup_8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.005aac48
add esp, 0x78
ret 0x1c
push ebp
push 0x428
call fcn.00475c60
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x3c], ebp
jne 0x4752ce
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call sym.LectoraViewer.exe__SerialImageCleanup_8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.005aac48
add esp, 0x78
ret 0x1c
push 0x428
push ebx
push ebp
call fcn.00475db0
mov eax, dword [esi + 0xca4]
mov edx, dword [eax]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0xca4]
mov edx, dword [ecx]
push 0xe
lea eax, [esp + 0x54]
push eax
push edx
call fcn.00475db0
mov eax, dword [esi + 0xca4]
mov ecx, dword [eax]
push 0x428
add ecx, 0xe
push ebp
push ecx
call fcn.00475db0
mov eax, dword [esi + 0xca4]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
push edi
push edx
add ecx, 0x436
push ecx
call fcn.00475db0
mov edi, dword [esp + 0x48]
add esp, 0x30
test edi, edi
mov dword [esi + 4], 0x200000
je 0x475348
mov edx, dword [edi]
or edx, 0x200000
mov dword [esi + 4], edx
push esi
mov dword [esi + 8], 0
mov dword [esi], 0x2000
call fcn.00472ec0
add esp, 4
cmp eax, 0x44
jne 0x47537a
push 0
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
call sym.LectoraViewer.exe__SerialImageNext_16
cmp eax, 0x44
je 0x475363
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edx
call esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x44], ebx
call esi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push 0
push 1
push 1
push ecx
push edx
lea esi, [ebx + 0x428]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x5c]
push edx
push 0x18
push eax
mov dword [ecx], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x64]
imul eax, dword [esp + 0x68]
mov dword [esp + 0x54], eax
add eax, 0x1000
push eax
call fcn.00475c60
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x24], edi
jne 0x475404
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call sym.LectoraViewer.exe__SerialImageCleanup_8
push ebp
call fcn.00475cc0
add esp, 4
jmp 0x4752b7
mov eax, dword [ebx + 4]
add eax, 7
cdq
movzx ecx, word [ebx + 0xe]
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebx + 8]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 0xc]
movzx edx, cx
imul eax, edx
add eax, 7
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x94]
sar ebp, 3
cmp eax, 0xffffffff
je 0x475455
cmp cx, 8
jne 0x475455
mov byte [esp + 0x74], al
jmp 0x475468
test ebp, ebp
jle 0x475468
push ebp
lea eax, [esp + 0x78]
push esi
push eax
call fcn.005ab7b0
add esp, 0xc
mov dword [esp + 0x14], esi
lea eax, [ebx + 0x28]
mov byte [esp + 0x2c], 0xff
xor ecx, ecx
cmp byte [eax + 2], 0
jne 0x475487
cmp byte [eax + 1], 0
jne 0x475487
cmp byte [eax], 0
je 0x475497
add ecx, 1
add eax, 4
cmp ecx, 0x100
jl 0x475476
jmp 0x47549b
mov byte [esp + 0x2c], cl
xor esi, esi
xor bl, bl
cmp dword [esp + 0x18], esi
mov byte [esp + 0x13], 0x80
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
jle 0x4755a6
xor eax, eax
test ebp, ebp
jle 0x4754ea
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x74]
sub ecx, edx
jmp 0x4754d0
lea edx, [ecx + eax]
mov dl, byte [esp + edx + 0x74]
cmp dl, byte [esp + eax + 0x74]
jne 0x4754e6
add eax, 1
cmp eax, ebp
jl 0x4754d0
jmp 0x4754ea
cmp eax, ebp
jl 0x475505
or bl, byte [esp + 0x13]
test ebp, ebp
jle 0x475509
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push ebp
push eax
push ecx
call fcn.005abb20
add esp, 0xc
add dword [esp + 0x14], ebp
mov eax, dword [esp + 0x28]
mov cl, byte [esp + 0x13]
add eax, 1
shr cl, 1
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], cl
jl 0x475557
test cl, 0x77
jne 0x475557
mov byte [edi], bl
add esi, 1
add edi, 1
xor bl, bl
cmp esi, dword [esp + 0x68]
mov byte [esp + 0x13], 0x80
jge 0x47554f
mov edi, edi
mov byte [edi], 0
add esi, 1
add edi, 1
cmp esi, dword [esp + 0x68]
jl 0x475540
xor esi, esi
mov dword [esp + 0x28], esi
jmp 0x47556a
test cl, cl
jne 0x47556a
mov byte [edi], bl
add edi, 1
add esi, 1
xor bl, bl
mov byte [esp + 0x13], 0x80
mov eax, dword [esp + 0x30]
add eax, ebp
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jl 0x4754b6
test bl, bl
jne 0x475589
cmp byte [esp + 0x13], 0x80
je 0x475591
mov byte [edi], bl
add edi, 1
add esi, 1
test esi, esi
je 0x4755a6
cmp esi, dword [esp + 0x68]
jge 0x4755a6
mov byte [edi], 0
add edi, 1
add esi, 1
jne 0x475595
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x24]
lea esi, [eax - 1]
imul esi, edi
cdq
sub eax, edx
sar eax, 1
mov ecx, ebx
add esi, ebx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x475609
mov dword [esp + 0x18], eax
lea ecx, [ecx]
test edi, edi
jle 0x4755f6
mov eax, esi
sub ecx, esi
mov ebp, edi
lea ebx, [ebx]
mov bl, byte [eax]
mov dl, byte [ecx + eax]
mov byte [ecx + eax], bl
mov byte [eax], dl
add eax, 1
sub ebp, 1
jne 0x4755e0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub esi, edi
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ecx
jne 0x4755d0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
push 0
push ecx
lea eax, [ecx + 0x428]
push eax
push 4
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push ebx
push edx
push ecx
call dword [sym.imp.GDI32.dll_SetBitmapBits]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call sym.LectoraViewer.exe__SerialImageCleanup_8
push ebx
call fcn.00475cc0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00475cc0
mov ecx, dword [esp + 0x8c]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005aac48
add esp, 0x78
ret 0x1c