Function at 0x4a71a0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcf8
mov eax, dword [esp + 0xd08]
mov ecx, dword [esp + 0xd0c]
push ebx
push ebp
mov ebp, dword [esp + 0xd18]
push esi
push edi
mov edi, dword [esp + 0xd30]
xor ebx, ebx
mov dword [esp + 0x54], 1
mov dword [eax], ebx
mov dword [ecx], ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [ebp], ebx
je 0x4a71f5
mov dword [edi], ebx
mov eax, dword [esp + 0xd38]
cmp eax, ebx
mov eax, dword [esp + 0xd24]
je 0x4a7213
cmp eax, ebx
je 0x4a721d
mov dword [eax], 0xffffffff
jmp 0x4a721d
cmp eax, ebx
je 0x4a721d
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x468]
push 0x20
push eax
push 0x4cd
push ecx
mov word [esp + 0x68], bx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [esp + 0xd3c], ebx
je 0x4a7256
mov eax, dword [0x5b8fc4]
xor ebx, ebx
cmp eax, 0x100
sete bl
mov ecx, dword [0x5b55dc]
mov eax, dword [esp + 0xd38]
mov esi, dword [esp + 0xd0c]
xor edx, edx
test ecx, ecx
sete dl
test eax, eax
mov dword [esp + 0x20], edx
jne 0x4a7282
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4a72ce
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004ccca0
add esp, 8
test eax, eax
jne case.0x4a72df.44
mov eax, dword [esp + 0x1c]
cmp eax, 0x53
jne 0x4a72c1
push esi
call fcn.00499660
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.004ccca0
add esp, 0xc
test eax, eax
jne case.0x4a72df.44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd24]
test ecx, ecx
je 0x4a72ce
mov dword [ecx], eax
cmp eax, 0x7c
ja case.0x4a72df.44
xor edx, edx
mov dl, byte [eax + 0x4a85e4]
jmp dword [edx*4 + 0x4a8530]
test eax, eax
jne 0x4a7355
mov eax, dword [0x5b55c4]
mov edx, dword [0x5b55d8]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0xd2c]
push ecx
mov ecx, dword [esp + 0xd34]
push edx
mov edx, dword [0x5b55c0]
push eax
mov eax, dword [esp + 0xd2c]
push ecx
mov ecx, dword [esp + 0xd2c]
push edx
push ebp
push eax
lea edx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0xd34]
lea eax, [esp + 0x48c]
push edx
mov edx, dword [0x5b55bc]
push eax
push 0
push ecx
push ebx
push edx
push esi
call fcn.00409430
add esp, 0x40
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [0x5b55d8]
mov edx, dword [esp + 0xd28]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xd30]
push ecx
mov ecx, dword [0x5b55c0]
push edx
mov edx, dword [esp + 0xd28]
push eax
mov eax, dword [esp + 0xd28]
push ecx
push ebp
push edx
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0xd30]
lea edx, [esp + 0x488]
push ecx
mov ecx, dword [0x5b55bc]
push edx
push eax
push ebx
push ecx
push esi
call fcn.0040a3d0
add esp, 0x38
mov dword [esp + 0x10], eax
jmp 0x4a83a8
push 0x5b9260
push 0
push str.UseSingleTrans
push str.MultiGIF
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x468]
push str.GIF___LZW
push edx
mov edi, eax
call fcn.004d631b
lea eax, [esp + 0x30]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push esi
call fcn.004051e0
add esp, 0x20
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a83a8
test edi, edi
je 0x4a7484
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4a74c1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4a7484
mov eax, dword [esi + 0x20]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x4c]
and eax, 0xff
cmp eax, ecx
mov byte [esp + 0x4c], al
jb 0x4a7443
mov byte [esp + 0x4c], cl
call fcn.004a6520
mov ecx, dword [esp + 0x4c]
xor edx, edx
and ecx, 0xff
mov dl, ah
mov byte [esi + ecx*4 + 0x2a], al
mov ecx, dword [esp + 0x4c]
and ecx, 0xff
shr eax, 0x10
mov byte [esi + ecx*4 + 0x29], dl
mov edx, dword [esp + 0x4c]
and edx, 0xff
mov byte [esi + edx*4 + 0x28], al
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a74c1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x878]
and ecx, 0xff
push ecx
push str.__Transparent_color:__d
push edx
call fcn.004d5ee1
lea eax, [esp + 0x884]
lea ecx, [esp + 0x474]
push eax
push ecx
call fcn.004d62f1
add esp, 0x14
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a83a8
lea edx, [esp + 0x468]
push str.__Interlaced
push edx
call fcn.004d62f1
add esp, 8
jmp 0x4a83a8
lea eax, [esp + 0x468]
lea ecx, [esp + 0x58]
push eax
push ecx
push ebp
push esi
call fcn.004042e0
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd3c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call fcn.004a6570
mov edx, dword [esp + 0xd40]
lea eax, [esp + 0x2c]
push edx
push edi
lea ecx, [esp + 0x47c]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push 0
push ebp
push eax
mov eax, dword [esp + 0xd3c]
xor edx, edx
test eax, eax
setg dl
push ecx
mov ecx, dword [0x5b55d4]
dec edx
and edx, ecx
xor ecx, ecx
test eax, eax
mov eax, dword [0x5b55d8]
push edx
mov edx, dword [esp + 0xd48]
setg cl
dec ecx
and ecx, eax
push ecx
push edx
push esi
call fcn.00412870
add esp, 0x40
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edx, dword [esp + 0xd3c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004a6570
lea eax, [esp + 0x474]
push str.PNG___ZIP
push eax
call fcn.004d5ee1
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 3
jne 0x4a75ee
mov ecx, dword [esp + 0xd34]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x38]
push edi
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push 0
push ebp
push ecx
push edx
push esi
call fcn.0040cca0
add esp, 0x30
jmp 0x4a762c
cmp eax, 0x72
jne 0x4a760e
push eax
lea eax, [esp + 0x46c]
lea ecx, [esp + 0x5c]
push eax
push ecx
push 0
push esi
call fcn.00435f40
add esp, 0x14
jmp 0x4a762c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
lea eax, [esp + 0x58]
push edx
mov edx, dword [esp + 0x18]
push eax
push ebp
push ecx
push edx
push esi
call fcn.0040d6b0
add esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a83a8
lea eax, [esp + 0x468]
push str.__interlaced
push eax
call fcn.004d62f1
add esp, 8
jmp 0x4a83a8
mov eax, dword [esp + 0xd3c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004a6570
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 8
jne 0x4a76ac
mov ecx, dword [esp + 0xd34]
lea edx, [esp + 0x468]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x20]
push eax
push ebp
push ecx
push edx
push esi
call fcn.00411fa0
add esp, 0x20
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x468]
push eax
push 0x5a3e3c
push ecx
call fcn.004d5ee1
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x474]
push edx
mov edx, dword [0x5ba148]
push ebp
lea ecx, [esp + 0x6c]
push eax
push ecx
push edx
push esi
call fcn.00435e80
add esp, 0x24
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0xd1c]
mov ecx, dword [esp + 0xd18]
push 0
push 4
push ebp
push eax
lea edx, [esp + 0x478]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push 0
push esi
call fcn.00491010
add esp, 0x28
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0xd14]
lea ecx, [esp + 0x468]
lea edx, [esp + 0x58]
push ecx
push edx
push 0x5b9260
push 0
push 0x12
push eax
push esi
call fcn.00491a50
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edx, dword [0x5ba148]
lea ecx, [esp + 0x58]
push ecx
push edx
push 0
push esi
call fcn.00437bf0
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edx, dword [esp + 0xd3c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004a6570
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push ecx
push 0
push esi
call fcn.00437bf0
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd3c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call fcn.004a6570
mov edx, dword [esp + 0xd40]
lea eax, [esp + 0x474]
push edx
mov edx, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0xd2c]
push ecx
mov ecx, dword [esp + 0x38]
push ebp
push edx
push eax
push ecx
push esi
call fcn.00407d90
add esp, 0x30
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edi, dword [esp + 0xd14]
lea edx, [esp + 0x468]
lea eax, [esp + 0x58]
push edx
push eax
push 0x5b9260
push 0
push 0x19
push edi
push esi
call fcn.00491a50
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a83a8
mov eax, dword [esp + 0xd3c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004a6570
mov ecx, dword [esp + 0xd40]
lea edx, [esp + 0x474]
push ecx
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x34]
push eax
push ebp
push ecx
push edi
push edx
push esi
call fcn.00407d90
add esp, 0x30
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [0x5ba148]
lea eax, [esp + 0x58]
push eax
push 0x1000
push 0
push 1
push ecx
push esi
call fcn.004366f0
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x4a83a8
push 0x5b9260
push 3
push str.Loading_Size
push str.PhotoCD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0xd18]
push eax
push esi
call fcn.0040bd80
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a83a8
push esi
call fcn.00436670
add esp, 4
cmp eax, 1
jne 0x4a83a8
mov eax, dword [esp + 0xd24]
mov dword [esp + 0x1c], 0x6f
test eax, eax
je 0x4a7909
mov dword [eax], 0x6f
mov eax, dword [esp + 0xd28]
lea ecx, [esp + 0x468]
push 0x6f
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push esi
call fcn.00436110
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea ecx, [esp + 0x58]
push ecx
push ebp
push esi
call fcn.00402e70
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea edx, [esp + 0x58]
push edx
push ebp
push esi
call fcn.00401ce0
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea eax, [esp + 0x58]
push eax
push esi
call fcn.004012d0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [0x5b55d8]
lea ecx, [esp + 0x468]
lea edx, [esp + 0x58]
push ecx
push edx
push eax
push ebp
push esi
call fcn.0040eed0
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edi, dword [esp + 0xd10]
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x5c]
xor ecx, ecx
push edx
mov edx, dword [esp + 0xd1c]
push 0x5b9260
test edi, edi
setg cl
push ecx
inc edx
push eax
push edx
push esi
call fcn.00491a50
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea eax, [esp + 0x58]
push 0x5b9260
push eax
call fcn.004d631b
mov ecx, dword [esp + 0xd24]
mov edx, dword [esp + 0xd20]
push ecx
lea eax, [esp + 0x474]
push edx
mov edx, dword [esp + 0xd24]
push eax
mov eax, dword [esp + 0xd24]
lea ecx, [esp + 0x6c]
inc eax
push ecx
push edx
push eax
push esi
call fcn.00436db0
add esp, 0x24
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd1c]
mov edx, dword [esp + 0xd18]
push 0
push eax
push ebp
push ecx
lea eax, [esp + 0x478]
push edx
mov edx, dword [esp + 0xd28]
push eax
mov eax, dword [esp + 0xd28]
lea ecx, [esp + 0x70]
push ecx
inc eax
push edx
push eax
push esi
call fcn.00491010
add esp, 0x28
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0xd3c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004a6570
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x474]
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xd44]
push edx
mov edx, dword [esp + 0x2c]
push 0x5b9260
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0xd48]
push edx
mov edx, dword [esp + 0xd48]
lea eax, [esp + 0x58]
push edi
push eax
mov eax, dword [esp + 0xd48]
push ebp
push ecx
mov ecx, dword [esp + 0xd54]
inc eax
push edx
push eax
push ecx
push esi
call fcn.00491600
add esp, 0x50
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd1c]
lea edx, [esp + 0x468]
lea eax, [esp + 0x58]
push edx
mov edx, dword [esp + 0xd1c]
push eax
push ecx
push edx
push esi
call fcn.0040b350
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4a83a8
mov eax, dword [esp + 0xd18]
mov ecx, dword [esp + 0xd1c]
mov eax, dword [eax]
mov ecx, dword [ecx]
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jle case.0x4a72df.44
test ecx, ecx
jle case.0x4a72df.44
mov edx, dword [esp + 0xd10]
test edx, edx
jle 0x4a7b7c
cmp eax, edx
jle 0x4a7b7c
lea ebx, [esp + 0x18]
push 1
push ebx
lea ebx, [esp + 0x1c]
push ebx
push ecx
push eax
push edx
push edx
call fcn.004c7350
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x1c
mov edx, dword [esp + 0xd3c]
test edx, edx
je 0x4a7c3c
mov edx, dword [esp + 0xd40]
test edx, edx
je 0x4a7c3c
cmp dword [0x5b8fc4], 0x100
jne 0x4a7bbb
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
push esi
call fcn.004a6730
add esp, 4
jmp 0x4a83a8
mov edx, dword [0x59f71c]
cmp edx, 2
je 0x4a7bd0
cmp edx, 3
je 0x4a7bd0
cmp edx, 9
jne 0x4a7c3c
mov eax, dword [0x5b552c]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [0x59f71c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp edx, 2
je 0x4a7c1a
cmp edx, 9
je 0x4a7c1a
cmp edx, 3
jne 0x4a7c3c
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
sub edx, ebx
cmp eax, edx
jge 0x4a7c1a
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
sub edx, ebx
cmp ecx, edx
jl 0x4a7c3c
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
push edx
push ecx
push eax
mov eax, dword [0x5b552c]
push eax
call fcn.004c7480
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ecx
push eax
push edi
call fcn.0040b170
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a7cf9
mov dword [esp + 0x38], 0x3f400000
mov dword [esp + 0x3c], 0x3f28f5c3
mov dword [esp + 0x40], 0x3f000000
mov dword [esp + 0x44], 0x3ea8f5c3
mov dword [esp + 0x24], eax
fild dword [esp + 0x18]
lea esi, [esp + eax*4 + 0x38]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esi]
call fcn.004d6118
fild dword [esp + 0x14]
push eax
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul dword [esi]
call fcn.004d6118
push eax
push edi
call fcn.0040b170
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a7cf9
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 4
mov dword [esp + 0x24], eax
jl 0x4a7c77
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [0x5b5528]
push eax
push ecx
push edx
call fcn.004c6f60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edi
call fcn.0040b170
add esp, 0x20
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x4a83a8
push 0x5b9260
push 0
push str.UseQTforPICT
push str.Others
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4a83a8
lea edx, [esp + 0x58]
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
push esi
call fcn.00439510
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [0x5b5530]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call edi
test eax, eax
jne 0x4a7d6a
mov edx, dword [0x5b5534]
push edx
call edi
test eax, eax
je case.0x4a72df.10
mov eax, dword [0x5b554c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a83a8
mov eax, dword [esp + 0xd10]
push 0
push eax
push eax
push esi
call fcn.004345c0
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea ecx, [esp + 0x468]
lea edx, [esp + 0x58]
push ecx
push edx
push 0
push esi
call fcn.00435c90
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd14]
lea eax, [esp + 0x58]
push eax
push ecx
push esi
call fcn.00435330
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a83a8
push 0x6d
mov edx, dword [esp + 0xd38]
mov eax, dword [esp + 0xd20]
mov ecx, dword [esp + 0xd1c]
push edx
push edi
push ebp
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
push 0x5b9260
call fcn.004a6520
mov ecx, dword [esp + 0xd34]
push eax
mov eax, dword [esp + 0xd34]
push eax
push ecx
push esi
call fcn.00439100
add esp, 0x30
mov dword [esp + 0x10], eax
jmp 0x4a83a8
push 0x6c
jmp 0x4a7ddd
mov eax, dword [esp + 0xd10]
test eax, eax
jne 0x4a83a8
mov ecx, dword [esp + 0xd3c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call fcn.004a6570
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x6c]
push str.2__d_d
push ecx
call fcn.004d5ee1
add esp, 0x1c
lea edx, [esp + 0x58]
push edx
push 0x5b9260
push 1
call fcn.0047da80
add esp, 4
push eax
push esi
call fcn.00435d60
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0xd1c]
mov ecx, dword [esp + 0xd18]
push eax
mov eax, dword [esp + 0xd14]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push esi
call fcn.00436760
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd1c]
mov edx, dword [esp + 0xd18]
push ecx
push edx
mov edx, dword [esp + 0xd1c]
lea eax, [esp + 0x470]
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0xd1c]
inc edx
push ecx
push edx
push eax
push 0
push esi
call fcn.004355c0
add esp, 0x20
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd1c]
mov edx, dword [esp + 0xd18]
push eax
push 0x5b9260
push ecx
mov ecx, dword [esp + 0xd1c]
lea eax, [esp + 0x64]
push edx
push eax
push ecx
push esi
call fcn.00491460
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov edx, dword [esp + 0xd1c]
mov eax, dword [esp + 0xd18]
push ebp
push edx
lea ecx, [esp + 0x470]
push eax
mov eax, dword [esp + 0xd1c]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
push esi
call fcn.00436bb0
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea ecx, [esp + 0x8f8]
push 0x104
push ecx
call fcn.004cb940
add esp, 8
lea edx, [esp + 0xb00]
lea eax, [esp + 0x8f8]
push 0x5b9260
push 0x104
push edx
push eax
push str.TTF_text
push str.Plugins
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffa7
lea ecx, [esp + 0x8fc]
push 0x104
lea edx, [esp + 0xb08]
push ecx
push edx
call fcn.004caaa0
lea eax, [esp + 0x68]
lea ecx, [esp + 0x908]
push eax
push ecx
push 0x3e8
push 0x400
push esi
call fcn.00435e20
add esp, 0x24
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea edx, [esp + 0x58]
push edx
push 0x5b9260
push esi
call fcn.00410f10
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov eax, dword [esp + 0xd10]
mov edi, dword [esp + 0xd28]
test eax, eax
jg 0x4a8048
push 0x5b9260
push 1
push str.CRW_Preview
push str.Plugins
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4a80d3
mov ecx, dword [esp + 0xd10]
lea eax, [esp + 0x58]
push eax
push edi
push ebx
push ecx
push esi
call fcn.00435190
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
lea edx, [esp + 0x58]
jne 0x4a80c4
push 1
push edx
call fcn.004a65c0
mov eax, dword [esp + 0xd18]
add esp, 8
test eax, eax
jne 0x4a808e
mov eax, 1
mov dword [esp + 0xd10], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xd1c]
push edi
push ecx
mov ecx, dword [esp + 0xd20]
push ebp
push edx
push ecx
lea edx, [esp + 0x47c]
lea ecx, [esp + 0x6c]
push edx
push ecx
push 0
push eax
push esi
call fcn.00491010
add esp, 0x28
mov dword [esp + 0x10], eax
jmp 0x4a80d3
push edx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00490f10
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a83a8
push 0x5b9260
push 0
push str.CRW_Canon
push str.Plugins
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4a82a3
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push esi
call fcn.00435070
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4a83a8
mov ecx, dword [esp + 0xd10]
test ecx, ecx
jle 0x4a8239
mov edi, dword [esp + 0xd28]
cmp eax, 0x54
jne 0x4a8171
mov edx, dword [esp + 0xd1c]
mov eax, dword [esp + 0xd18]
push 0
push 0
push edi
push 0
push 1
push ebp
push edx
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0xd30]
lea edx, [esp + 0x488]
push ecx
push edx
push eax
push ebx
push 0
push esi
call fcn.0040a3d0
add esp, 0x38
jmp 0x4a81a0
cmp eax, 0x55
jne 0x4a81a8
push 0
push 0
lea ecx, [esp + 0x470]
push 0
lea edx, [esp + 0x64]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.00412870
add esp, 0x34
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a83a8
mov ecx, dword [esp + 0xd18]
push edi
push eax
mov eax, dword [esp + 0xd24]
push ebp
push eax
lea edx, [esp + 0x478]
push ecx
mov ecx, dword [esp + 0xd24]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
push esi
call fcn.00491010
add esp, 0x28
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a83a8
push 1
lea edx, [esp + 0x5c]
push edx
call fcn.004a65c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xd24]
mov edx, dword [esp + 0xd20]
push edi
push eax
push ebp
push ecx
lea eax, [esp + 0x480]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
push 0
push 0
push esi
call fcn.00491010
add esp, 0x30
mov dword [esp + 0x10], eax
jmp 0x4a83a8
push 0x5b9260
push 1
push str.CRW_Preview
push str.Plugins
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, dword [esp + 0xd28]
test eax, eax
je 0x4a8297
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xd1c]
mov ecx, dword [esp + 0xd18]
push edi
push edx
push ebp
push eax
push ecx
mov ecx, dword [esp + 0xd24]
lea edx, [esp + 0x47c]
lea eax, [esp + 0x6c]
push edx
push eax
inc ecx
push 0
push ecx
push esi
call fcn.00491010
add esp, 0x28
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a83a8
push 0
jmp 0x4a81f5
mov ecx, dword [esp + 0xd10]
lea edx, [esp + 0x58]
push 0x5b9260
push edx
push 0
push ecx
push eax
push esi
call fcn.00434b30
add esp, 0x18
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea edx, [esp + 0x468]
lea ecx, [esp + 0x58]
push edx
mov edx, dword [esp + 0xd30]
push ecx
push 0x5b9260
push edx
push eax
mov eax, dword [esp + 0xd28]
push eax
push esi
call fcn.00491a50
add esp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea ecx, [esp + 0x468]
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
push esi
call fcn.004909e0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, 0x3a
jne 0x4a83a8
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x468]
push 0x20
push eax
push 0x4e74
push ecx
jmp 0x4a83a2
push eax
lea edx, [esp + 0x46c]
lea eax, [esp + 0x5c]
push edx
push eax
push ebx
push esi
call fcn.00435f40
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x4a83a8
lea ecx, [esp + 0x468]
push eax
mov eax, dword [esp + 0xd2c]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push esi
call fcn.00436110
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, 0x2f
jne 0x4a83a8
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x468]
push 0x20
push ecx
push 0x4e74
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0xd44]
test eax, eax
je 0x4a83c1
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.004d631b
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x4a72df.44
push 0
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.004c5070
add esp, 0x18
test eax, eax
je 0x4a8404
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push esi
push ecx
push edx
call fcn.004a70c0
add esp, 0xc
test eax, eax
jne 0x4a842b
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x4a72df.44
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcf8
ret
cmp dword [ebp], 0
jne 0x4a8434
mov dword [ebp], esi
mov eax, dword [esp + 0xd10]
test eax, eax
mov eax, 1
jg 0x4a8448
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xd3c]
lea ecx, [esp + 0x468]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push 0
push edx
push esi
push eax
push ecx
call fcn.004a9180
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a84ae
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a848e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c5070
add esp, 0x18
mov eax, dword [esp + 0xd18]
cmp dword [eax], 0
jne 0x4a84c0
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0xd1c]
cmp dword [eax], 0
jne 0x4a84d2
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xd48]
test esi, esi
je 0x4a851e
mov eax, dword [esp + 0x1c]
add eax, 0xffffffe9
cmp eax, 0x2d
ja case.0x4a84f1.24
xor ecx, ecx
mov cl, byte [eax + 0x4a866c]
jmp dword [ecx*4 + 0x4a8664]
lea edx, [esp + 0x58]
lea eax, [esp + 0x468]
push edx
push eax
call fcn.004d631b
add esp, 8
lea ecx, [esp + 0x468]
push ecx
push esi
call fcn.004d631b
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcf8
ret