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

Disassembly:
push 0xffffffffffffffff
push 0x4f99a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
lea edi, [esi + 0x78]
mov dword [esi + 8], eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x98]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x84], ebp
je 0x4d54ea
cmp dword [eax - 0xc], ebp
jge 0x4d54bd
mov edx, dword [0x50d0e4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4d54c2
cmp dword [ecx - 0xc], ebp
jge 0x4d54d0
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, edi
call fcn.004021f0
jmp 0x4d54ea
mov ecx, edi
call fcn.00402350
mov eax, dword [esp + 0x98]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov eax, dword [0x50d0e0]
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x90]
push 0x519444
push ecx
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0x8c], 1
call fcn.004086e0
mov edi, eax
mov ecx, dword [esi + 0x58]
mov eax, dword [edi]
lea ebx, [esi + 0x58]
cmp ecx, eax
mov byte [esp + 0x84], 2
je 0x4d556d
cmp dword [ecx - 0xc], ebp
jge 0x4d5545
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d554a
cmp dword [eax - 0xc], ebp
jge 0x4d5558
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, ebx
call fcn.004021f0
jmp 0x4d556d
mov ecx, ebx
call fcn.00402350
mov edi, dword [edi]
mov dword [ebx], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d55aa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d55aa
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x90]
push eax
call fcn.004c9fc0
mov ebp, eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp]
lea edi, [esi + 4]
cmp ecx, eax
mov byte [esp + 0x84], 3
je 0x4d5614
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d55e9
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d55f0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d55fe
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.004021f0
jmp 0x4d5614
mov ecx, edi
call fcn.00402350
mov ebp, dword [ebp]
mov dword [edi], ebp
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x90]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4d5651
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5651
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov edi, 0x51d768
mov eax, dword [edi]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.004e02fc
add esp, 8
test eax, eax
je 0x4d5675
add edi, 8
cmp edi, str.pause
jl 0x4d5656
jmp 0x4d567b
mov ecx, dword [edi + 4]
mov dword [esi + 0x64], ecx
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0x90]
push str.offsetx
push edx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 4
je 0x4d56dd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d56c1
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d56cc
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d578c
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x94]
call fcn.004021f0
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d5720
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5720
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x6c], eax
push str.offsety
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 5
je 0x4d57cd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d5772
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d5779
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d57b2
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d57cd
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
jmp 0x4d56e3
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d580a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d580a
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x70], eax
push str.width
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 6
je 0x4d5891
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d585c
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d5863
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d5876
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d5891
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d58ce
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d58ce
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x50], eax
push str.height
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 7
je 0x4d5955
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d5920
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d5927
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d593a
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d5955
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d5992
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5992
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x54], eax
push str.zorder
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 8
je 0x4d5a19
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d59e4
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d59eb
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d59fe
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d5a19
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d5a56
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5a56
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x7c], eax
push str.stretchx
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 9
je 0x4d5add
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d5aa8
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d5aaf
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d5ac2
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d5add
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d5b1a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5b1a
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x84], eax
push str.stretchy
push ecx
mov ecx, ebx
call fcn.004086e0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 0xa
je 0x4d5ba4
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d5b6f
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d5b76
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d5b89
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004021f0
jmp 0x4d5ba4
lea ecx, [esp + 0x8c]
call fcn.00402350
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d5bd9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5bd9
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004debd7
mov dword [esi + 0x88], eax
mov ecx, dword [0x50d0e0]
add esp, 4
mov dword [esp + 0x90], ecx
xor eax, eax
mov word [esp + 0x28], ax
mov bl, 0xc
push str.rect
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], bl
mov word [esp + 0x3c], ax
call fcn.00406940
mov edi, dword [esp + 0x94]
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
push eax
push str.getAttribute
lea ecx, [edi + 4]
mov byte [esp + 0x90], 0xd
call fcn.00406990
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x38]
push ecx
mov dword [edi], eax
mov byte [esp + 0x88], bl
call ebp
cmp dword [edi], 0
jl 0x4d5ccb
cmp word [esp + 0x28], 8
jne 0x4d5ccb
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4d5ccb
push eax
lea ecx, [esp + 0x14]
call fcn.00406b50
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x88], 0xe
call fcn.00402090
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], bl
call fcn.00402160
lea ecx, [esp + 0x90]
call fcn.00407410
lea ecx, [esp + 0x90]
call fcn.00407310
mov edx, dword [esp + 0x90]
push edx
call fcn.004debd7
add esp, 4
mov edi, eax
jmp 0x4d5cce
or edi, 0xffffffff
lea eax, [esp + 0x28]
push eax
call ebp
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.00402160
xor ebx, ebx
cmp edi, ebx
jle 0x4d5cf5
mov dword [esi + 0x80], edi
mov edi, dword [esp + 0x94]
lea ecx, [esp + 0x90]
push str.horizontal
push ecx
mov ecx, edi
call fcn.004086e0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0xf
call fcn.00402090
mov eax, dword [esp + 0x90]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x84], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4d5d62
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d5d62
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x4d5dc9
push str.left
push ecx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5d87
mov dword [esi + 0xc], ebx
jmp 0x4d5dc9
mov ecx, dword [esp + 0x8c]
push str.right
push ecx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5da9
mov dword [esi + 0xc], 1
jmp 0x4d5dc9
mov edx, dword [esp + 0x8c]
push str.center
push edx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5dc9
mov dword [esi + 0xc], 2
lea eax, [esp + 0x90]
push str.vertical
push eax
mov ecx, edi
call fcn.004086e0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x10
call fcn.00402090
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.00402160
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x4d5e6d
push 0x50e858
push ecx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5e2b
mov dword [esi + 0x10], ebx
jmp 0x4d5e6d
mov ecx, dword [esp + 0x8c]
push str.bottom
push ecx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5e4d
mov dword [esi + 0x10], 1
jmp 0x4d5e6d
mov edx, dword [esp + 0x8c]
push str.center
push edx
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5e6d
mov dword [esi + 0x10], 2
lea eax, [esp + 0x90]
push str.bmpfill
push eax
mov ecx, edi
call fcn.004086e0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x11
call fcn.00402090
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.00402160
mov eax, dword [esp + 0x8c]
cmp dword [eax - 8], ebx
jle 0x4d5eda
push str.bmpcopy
push eax
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d5ed4
mov dword [esi + 0xa8], 1
jmp 0x4d5eda
mov dword [esi + 0xa8], ebx
push ebx
push str.fullnoshow
mov ecx, edi
call fcn.00408cb0
push ebx
push str.generalnoshow
mov ecx, edi
mov dword [esi + 0x98], eax
call fcn.00408cb0
lea ecx, [esp + 0x90]
push str.image
push ecx
mov ecx, edi
mov dword [esi + 0x9c], eax
call fcn.004086e0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x12
call fcn.00402090
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.00402160
mov edx, dword [esp + 0x8c]
cmp dword [edx - 8], ebx
jle 0x4d6225
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x4d5f5e
push 1
call fcn.004c7660
mov dword [esi + 0x18], ebx
mov eax, dword [0x50d0e0]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi + 0x78]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x51736c
push eax
mov byte [esp + 0x94], 0x13
call fcn.004074f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4d620b
lea edx, [esp + 0x38]
push edx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
push 4
call fcn.004de48f
add esp, 4
test eax, eax
je 0x4d5fd7
mov dword [eax], 0
jmp 0x4d5fd9
xor eax, eax
mov edx, dword [esi + 8]
mov dword [esi + 0x18], eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x50]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov word [esp + 0x60], 1
mov word [esp + 0x62], 0x20
mov dword [esp + 0x64], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 0x18]
lea ebp, [esi + 0x20]
push 0
mov edi, eax
push 0
push ebp
lea eax, [esp + 0x5c]
push 0
push eax
push edi
call fcn.004d74f0
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x50]
push 0
push ecx
push edx
push eax
push 0
push ebx
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x50]
push 0
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push 0
push edi
call fcn.004c8130
lea ecx, [esp + 0x90]
push str.alpha_channel
push ecx
mov ecx, dword [esp + 0x9c]
call fcn.004086e0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x14
call fcn.00402090
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 0x13
call fcn.00402160
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4d61f5
mov edx, dword [esi + 0x78]
push eax
push edx
lea eax, [esp + 0x18]
push 0x51736c
push eax
call fcn.004074f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x4d61f5
push 4
mov dword [esi + 0x1c], 1
call fcn.004de48f
add esp, 4
test eax, eax
je 0x4d6121
mov dword [eax], 0
mov dword [esp + 0x90], eax
jmp 0x4d612c
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x90]
push ebx
call fcn.004c8100
mov edx, dword [esp + 0x40]
imul edx, dword [esp + 0x3c]
shl edx, 2
push edx
call fcn.004de48f
mov ecx, dword [esp + 0x44]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x50]
push 0
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xa0]
push 0
push edi
mov dword [esp + 0x30], ebx
call fcn.004d7520
mov edx, dword [esp + 0x40]
mov eax, dword [ebp]
imul edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x14], ebx
test edx, edx
jle 0x4d61b9
mov edx, ebx
or bl, 0xff
add eax, 4
sub bl, byte [edx]
add edx, 4
mov byte [esp + 0x14], bl
mov ebx, dword [esp + 0x14]
and ebx, 0xff
shl ebx, 0x18
or dword [eax - 4], ebx
mov ebx, dword [esp + 0x40]
imul ebx, dword [esp + 0x3c]
inc ecx
cmp ecx, ebx
jl 0x4d6188
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x50]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x18]
push edx
push 0
push edi
call fcn.004c8130
test ebx, ebx
je 0x4d61e1
push ebx
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4d61f5
push 1
mov ecx, eax
call fcn.004c7660
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
call fcn.00402160
mov edi, dword [esp + 0x94]
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.004098a0
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov byte [esp + 0x88], 0x15
call fcn.00479a20
lea ecx, [esp + 0x20]
call fcn.004639e0
test eax, eax
jle 0x4d625b
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004d6630
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x4d62c8
lea edi, [esi + 0x5c]
push edi
call fcn.004bbe40
cmp dword [esi + 0x50], ebx
jne 0x4d627b
cmp dword [esi + 0xc], 3
je 0x4d627b
mov ecx, dword [edi]
mov dword [esi + 0x50], ecx
cmp dword [esi + 0x54], ebx
jne 0x4d628c
cmp dword [esi + 0x10], 3
je 0x4d628c
mov edx, dword [esi + 0x60]
mov dword [esi + 0x54], edx
mov eax, dword [esi + 0x58]
push 0x50e858
push eax
call fcn.004dec69
add esp, 8
test eax, eax
je 0x4d62b6
mov eax, dword [esi + 0x58]
push str.caption
push eax
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4d62c8
mov eax, dword [esi + 0x60]
mov ecx, dword [0x5257f0]
cmp ecx, eax
jge 0x4d62c8
mov dword [0x5257f0], eax
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
call fcn.004bce30
test eax, eax
jbe 0x4d62fd
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0x7c]
mov ecx, dword [esi + 0x44]
cmp edx, ecx
jle 0x4d62f1
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x7c]
mov dword [esi + 0x44], ecx
mov ecx, ebx
inc edi
call fcn.004bce30
cmp edi, eax
jb 0x4d62d8
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.0042ca10
lea ecx, [esp + 0x8c]
call fcn.00402160
lea ecx, [esp + 0x98]
call fcn.00402160
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10