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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fb124
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
cmp dword [ebp + 0x18], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
je 0x480411
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4803dc
cmp eax, 1
jne 0x480411
cmp edi, dword [esi + 0x10]
jge 0x4803dc
mov eax, dword [esi + 0x3c]
cmp dword [eax + 0x28], edi
jg 0x480411
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], edi
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x48040a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48040a
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.006b31f8
add esp, 4
xor eax, eax
jmp 0x481411
cmp dword [ebp + 0x20], 0
je 0x48047a
push 1
push 1
push 1
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00428690
mov edx, 1
lea ecx, [ebp - 0xb4]
call fcn.00481f60
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004289a0
mov eax, dword [ebp - 0xb4]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x48047a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48047a
mov eax, dword [ebp - 0xb4]
add eax, 0xfffffff4
push eax
call fcn.006b31f8
add esp, 4
mov eax, dword [0x7e7970]
mov dword [ebp - 0xa0], 0xff000000
mov dword [ebp - 0x9c], 0xff000000
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], eax
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xb4], eax
or ebx, 0xffffffff
lea eax, [esi + 0x3c]
mov esi, dword [eax]
mov dword [ebp - 0xb0], eax
test esi, esi
je 0x4804d9
lea ebx, [ebx]
mov ecx, dword [esi + 0x44]
mov esi, dword [esi]
test ecx, ecx
je 0x4804cf
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x4804c0
mov eax, dword [ebp - 0xb0]
mov ecx, eax
call fcn.00482640
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [ebp - 0xb8], ecx
test eax, eax
je 0x480505
push eax
call fcn.006b3261
lea ecx, [esi + 0x1c]
add esp, 4
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
mov dword [ebp - 0xc0], ecx
test eax, eax
je 0x480534
push eax
call fcn.006b3261
lea ecx, [esi + 0x2c]
add esp, 4
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0xbc], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov dword [esi + 0x54], edx
mov dword [esi + 0x10], edi
test ecx, ecx
je 0x480593
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x70]
push 0x790eb0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x790eb0
push eax
lea ecx, [ebp - 0x84]
call fcn.00428920
movd xmm0, dword [esi + 0x70]
lea ecx, [esi + 0x1c]
cvtdq2ps xmm0, xmm0
mov esi, dword [ecx + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea eax, [esi + 1]
mov dword [ebp - 0x8c], 0
mulss xmm0, dword [0x792188]
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 0xffffffff
divss xmm0, dword [0x792184]
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x792068]
cvttsd2si edi, xmm0
call fcn.00482780
mov ecx, dword [ebp - 0xb8]
push 0xffffffffffffffff
mov eax, dword [ecx]
mov dword [eax + esi*4], edi
mov edi, dword [ebp - 0xc0]
mov ecx, edi
mov esi, dword [edi + 4]
lea eax, [esi + 1]
push eax
call fcn.00482780
mov eax, dword [edi]
push 0
push dword [ebp - 0xa4]
push dword [ebp - 0x60]
mov dword [eax + esi*4], 0
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.00480050
push 0
lea ecx, [ebp + 8]
call fcn.00428e80
mov edi, dword [ebp - 0x84]
mov ecx, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x1c], 0
movzx eax, word [ecx]
push ecx
mov word [ebp - 0x1c], ax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x54], eax
mov ax, word [ebp - 0x1c]
cmp ax, 7
je 0x4809bf
cmp ax, 8
je 0x4809bf
mov ecx, dword [esi + 0x54]
test cl, 4
jne 0x4806f7
mov byte [ebp - 0x45], 1
cmp ax, 0xa
je 0x4806fb
mov byte [ebp - 0x45], 0
shr ecx, 2
and ecx, 0xffffff01
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480710
sub ecx, edx
lea eax, [ebp - 0xe4]
push eax
sar ecx, 1
lea eax, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xe0]
mov dword [ebp - 0x68], edx
test dword [ecx + 0x54], 0x100
mov dword [ebp - 0x58], esi
je 0x48079b
mov ecx, 0x783fcc
lea eax, [ebp - 0x1c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480786
test dx, dx
je 0x480782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480786
add eax, 4
add ecx, 4
test dx, dx
jne 0x480760
xor eax, eax
jmp 0x48078b
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x68]
xor ecx, ecx
test eax, eax
cmove edx, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], edx
cmp byte [ebp - 0x5c], 0
jne 0x4808fc
cmp byte [ebp - 0x45], 0
jne 0x4807b9
mov eax, dword [ebp - 0x64]
add eax, edx
cmp eax, dword [ecx + 0x10]
jle 0x4808fc
mov eax, 0x790eb0
mov edi, edi
mov cx, word [edi]
cmp cx, word [eax]
jne 0x4807e6
test cx, cx
je 0x4807e2
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x4807e6
add edi, 4
add eax, 4
test cx, cx
jne 0x4807c0
xor eax, eax
jmp 0x4807eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x480821
mov edi, dword [ebp - 0xb0]
push ecx
mov ecx, edi
push dword [edi + 4]
call fcn.004828d0
mov esi, eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 8]
call fcn.00482700
mov eax, dword [edi + 4]
test eax, eax
je 0x48081c
mov dword [eax], esi
jmp 0x48081e
mov dword [edi], esi
mov dword [edi + 4], esi
movd xmm0, dword [ebp - 0xa4]
cvtdq2ps xmm0, xmm0
mov ecx, dword [ebp - 0xb8]
push 0xffffffffffffffff
mov esi, dword [ecx + 4]
mulss xmm0, dword [0x792188]
lea eax, [esi + 1]
divss xmm0, dword [0x792184]
push eax
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x792068]
cvttsd2si edi, xmm0
call fcn.00482780
mov ecx, dword [ebp - 0xb8]
push 0xffffffffffffffff
mov eax, dword [ecx]
mov dword [eax + esi*4], edi
mov edi, dword [ebp - 0xc0]
mov ecx, edi
mov esi, dword [edi + 4]
lea eax, [esi + 1]
push eax
call fcn.00482780
mov eax, dword [edi]
mov edi, dword [ebp - 0xbc]
push 0x790eb0
mov dword [eax + esi*4], 0
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0x78]
mov eax, dword [ebp - 0xb8]
neg esi
mov dword [ebp - 0x64], esi
mov ecx, dword [eax]
mov eax, dword [ebp - 0x94]
add edi, dword [ecx + eax*4]
mov dword [ebp - 0xbc], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x790eb0
push eax
lea ecx, [ebp - 0x84]
call fcn.00428920
inc dword [ebp - 0x94]
mov dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0xac], esi
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x18]
cmp ecx, 0x7fffffff
jne 0x480926
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
jmp 0x480928
mov eax, ecx
mov edx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x94]
add eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
mov edx, dword [edx]
mov dword [ebp - 0x5c], edx
mov edx, dword [edx + esi*4]
cmp edx, eax
ja 0x480960
cmp ecx, 0x7fffffff
jne 0x48095b
mov eax, dword [ebp - 0x58]
cdq
and edx, 3
lea ecx, [edx + eax]
sar ecx, 2
mov edx, dword [ebp - 0x58]
add edx, ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [eax + esi*4], edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax]
add dword [eax + esi*4], ecx
cmp byte [ebp - 0x45], 0
jne 0x480c8a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4809a5
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00428d40
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x78]
add dword [ebp - 0x8c], eax
inc dword [esi + 0x64]
add dword [ebp - 0x64], eax
jmp 0x480c8d
mov ecx, 0x790eb0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4809ec
test dx, dx
je 0x4809e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4809ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x4809c6
xor eax, eax
jmp 0x4809f1
sbb eax, eax
or eax, 1
test eax, eax
je 0x480a27
mov edi, dword [ebp - 0xb0]
push ecx
mov ecx, edi
push dword [edi + 4]
call fcn.004828d0
mov esi, eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 8]
call fcn.00482700
mov eax, dword [edi + 4]
test eax, eax
je 0x480a22
mov dword [eax], esi
jmp 0x480a24
mov dword [edi], esi
mov dword [edi + 4], esi
push 0x790eb0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 1
lea esi, [eax - 0xc]
jg 0x480a45
cmp edi, dword [eax - 4]
jle 0x480ab4
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x480a71
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x480a64
push esi
call fcn.006b31f8
add esp, 4
mov eax, dword [0x7e7970]
mov dword [ebp - 0x84], eax
jmp 0x480a76
mov eax, dword [0x7e7970]
mov dword [ebp - 0x50], eax
test edi, edi
je 0x480aae
lea eax, [edi*2 + 0xe]
push eax
call fcn.006b6815
add esp, 4
test eax, eax
je 0x481318
xor ecx, ecx
mov dword [eax + 8], edi
mov dword [eax], 1
mov word [eax + edi*2 + 0xc], cx
mov dword [eax + 4], edi
add eax, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x84], eax
lea esi, [edi + edi]
push esi
push 0x790eb0
push eax
call fcn.006b3670
mov eax, dword [ebp - 0x50]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x78], 0
mov dword [eax - 8], edi
mov edi, dword [ebp - 0x54]
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xa8], ecx
movzx ecx, word [edi]
test cx, cx
je 0x480c9d
mov ax, word [ebp - 0x1c]
cmp ax, 7
jne 0x480f3e
cmp ecx, 0x31
jb 0x480b76
cmp ecx, 0x39
ja 0x480b76
lea eax, [ecx - 0x31]
add edi, 2
lea esi, [eax + eax*2]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x4c]
add esi, dword [eax + 0x70]
cmp esi, dword [ebp - 0xa4]
je 0x48130e
push dword [eax + 8]
mov edi, dword [ebp - 0x60]
push edi
mov dword [ebp - 0xa4], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x4c]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x90]
push esi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
push edi
call fcn.00480050
mov edi, dword [ebp - 0x50]
jmp 0x480c8d
cmp ecx, 0x24
jne 0x480c26
push 2
lea esi, [edi + 2]
push esi
lea eax, [ebp - 0x24]
push 3
push eax
call fcn.006b8928
add esp, 0x10
lea ecx, [ebp - 0x24]
xor eax, eax
lea edx, [ecx + 2]
mov word [ebp - 0x20], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480ba0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
je 0x480bc1
mov edi, dword [ebp - 0x50]
mov ecx, esi
mov esi, dword [ebp - 0x4c]
jmp 0x480c90
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x24]
push 0x789480
push eax
call fcn.006b9e87
mov eax, dword [ebp - 0xd4]
add esp, 0xc
mov esi, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0xa4]
je 0x480c1b
push dword [esi + 8]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x90]
mov ecx, esi
push dword [ebp - 0xa4]
push dword [ebp - 0x60]
call fcn.00480050
add edi, 6
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x50]
jmp 0x480c8d
cmp ecx, 0x61
jb 0x480cd3
cmp ecx, 0x7a
ja 0x480cd3
mov ecx, dword [ecx*4 + 0x77dd9c]
mov eax, ecx
shr eax, 8
movzx edx, al
movzx eax, cl
shl eax, 8
or edx, eax
shr ecx, 0x10
movzx eax, cl
shl edx, 8
or edx, eax
movzx ecx, dl
mov eax, edx
or ecx, 0xffffff00
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [ebp - 0xa0], ecx
add edi, 2
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
cmp word [ecx], 0
jne 0x4806b5
mov eax, dword [ebp - 0x50]
mov ecx, 0x790eb0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48132a
test dx, dx
je 0x480ccc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48132a
add eax, 4
add ecx, 4
test dx, dx
jne 0x480ca2
xor eax, eax
jmp 0x48132f
cmp ecx, 0x5e
jne 0x480d58
push 6
lea esi, [edi + 2]
push esi
lea eax, [ebp - 0x34]
push 7
push eax
call fcn.006b8928
add esp, 0x10
lea ecx, [ebp - 0x34]
xor eax, eax
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480d00
sub ecx, edx
sar ecx, 1
cmp ecx, 6
je 0x480d21
mov edi, dword [ebp - 0x50]
mov ecx, esi
mov esi, dword [ebp - 0x4c]
jmp 0x480c90
lea ecx, [ebp - 0x34]
call fcn.0047fc90
movzx edx, al
mov ecx, eax
or edx, 0xffffff00
shr ecx, 8
shl edx, 8
movzx ecx, cl
or edx, ecx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
add edi, 0xe
mov dword [ebp - 0xa0], edx
jmp 0x480c84
cmp ecx, 0x5f
je 0x480eee
cmp ecx, 0x2d
je 0x480e67
cmp ecx, 0x3c
je 0x480e62
cmp ecx, 0x3e
je 0x480e62
cmp ecx, 0x2f
je 0x480e62
cmp ecx, 0x5c
je 0x480e62
cmp ecx, 0x2a
je 0x480e62
cmp ecx, 0x5b
jne 0x480e1c
mov ebx, dword [ebp - 0xa0]
mov esi, edi
mov eax, dword [0x7e7970]
or dword [ebp - 0x90], 0x10
mov dword [ebp - 0xa0], 0xff0000ff
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 3
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x7c
je 0x480dee
cmp eax, 0x5d
je 0x480e05
test ax, ax
je 0x480e05
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
push 1
call fcn.00428d40
jmp 0x480dc5
lea eax, [ebp - 0x58]
mov edi, esi
push eax
lea ecx, [ebp - 0x74]
call fcn.004289a0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x50], eax
add edi, 2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], edi
call fcn.00428810
jmp 0x480c87
cmp ecx, 0x5d
jne 0x480c87
and dword [ebp - 0x90], 0xffffffef
lea ecx, [ebp - 0x74]
push 0x790eb0
call fcn.00428a30
mov eax, dword [ebp - 0xa0]
cmp ebx, 0xffffffff
cmovne eax, ebx
or ebx, 0xffffffff
add edi, 2
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x50], edi
jmp 0x480c8a
cmp ecx, 0x2d
jne 0x480e7b
mov esi, dword [ebp - 0x90]
and esi, 0xfffffffe
mov dword [ebp - 0x90], esi
jmp 0x480f05
cmp ecx, 0x3c
jne 0x480e91
mov esi, dword [ebp - 0x90]
or esi, 2
mov dword [ebp - 0x90], esi
jmp 0x480f05
cmp ecx, 0x3e
jne 0x480ea7
mov esi, dword [ebp - 0x90]
and esi, 0xfffffffd
mov dword [ebp - 0x90], esi
jmp 0x480f05
cmp ecx, 0x2f
jne 0x480ebd
mov esi, dword [ebp - 0x90]
or esi, 4
mov dword [ebp - 0x90], esi
jmp 0x480f05
cmp ecx, 0x5c
jne 0x480ed3
mov esi, dword [ebp - 0x90]
and esi, 0xfffffffb
mov dword [ebp - 0x90], esi
jmp 0x480f05
cmp ecx, 0x2a
jne 0x480eff
mov eax, dword [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x90], esi
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xa4], eax
jmp 0x480f05
mov esi, dword [ebp - 0x90]
or esi, 1
mov dword [ebp - 0x90], esi
jmp 0x480f05
mov esi, dword [ebp - 0x90]
add edi, 2
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x4c]
push dword [edi + 8]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push dword [ebp - 0xa4]
mov esi, edi
push dword [ebp - 0x60]
mov ecx, esi
call fcn.00480050
mov edi, dword [ebp - 0x50]
jmp 0x480c8d
cmp ax, 8
jne 0x480c87
cmp ecx, 0x61
jb 0x480fa0
cmp ecx, 0x7a
ja 0x480fa0
mov ecx, dword [ecx*4 + 0x77dd9c]
mov eax, ecx
shr eax, 8
movzx edx, al
movzx eax, cl
shl eax, 8
or edx, eax
shr ecx, 0x10
movzx eax, cl
shl edx, 8
or edx, eax
movzx ecx, dl
mov eax, edx
or ecx, 0xffffff00
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
mov dword [ebp - 0x9c], ecx
jmp 0x480c81
cmp ecx, 0x5e
jne 0x481065
push 6
lea esi, [edi + 2]
push esi
lea eax, [ebp - 0x44]
push 7
push eax
call fcn.006b8928
add esp, 0x10
lea ecx, [ebp - 0x44]
xor eax, eax
lea edx, [ecx + 2]
mov word [ebp - 0x38], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480fd0
sub ecx, edx
sar ecx, 1
cmp ecx, 6
je 0x480ff1
mov edi, dword [ebp - 0x50]
mov ecx, esi
mov esi, dword [ebp - 0x4c]
jmp 0x480c90
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x44]
push 0x785224
push eax
call fcn.006b9e87
movzx edx, byte [ebp - 0xd0]
add esp, 0x14
movzx eax, byte [ebp - 0xcc]
shl edx, 8
or edx, eax
movzx eax, byte [ebp - 0xd8]
shl edx, 8
or edx, eax
movzx ecx, dl
mov eax, edx
or ecx, 0xffffff00
shr eax, 8
shl ecx, 8
movzx eax, al
or ecx, eax
shr edx, 0x10
shl ecx, 8
movzx eax, dl
or ecx, eax
add edi, 0xe
mov dword [ebp - 0x9c], ecx
jmp 0x480c84
cmp ecx, 0x3c
jne 0x480c87
mov eax, dword [0x7e7970]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 4
lea ebx, [ebx]
cmp cx, 0x3e
je 0x4810e1
movzx eax, cx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 1
call fcn.00428d40
movzx ecx, word [edi + 2]
add edi, 2
mov dword [ebp - 0x54], edi
test cx, cx
jne 0x481080
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x58]
lea eax, [esi - 0xc]
mov byte [ebp - 4], 2
cmp eax, 0x7e8698
je 0x480c8a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x480c8a
push esi
call fcn.006b31f8
add esp, 4
jmp 0x480c8a
cmp word [edi], 0
je 0x4810a9
push 0x790eb0
lea eax, [ebp - 0x84]
push eax
call fcn.004292e0
test al, al
je 0x48110e
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
push eax
call fcn.00482600
movzx eax, word [edi]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 1
call fcn.00428d40
add edi, 2
push 0x44
mov dword [ebp - 0x54], edi
call fcn.006b6815
add esp, 4
test eax, eax
je 0x481318
mov ecx, eax
call fcn.004374f0
mov esi, dword [ebp - 0x58]
mov edi, eax
push esi
mov ecx, edi
mov dword [ebp - 0x70], edi
call fcn.00437730
test eax, eax
jne 0x481179
test edi, edi
je 0x481161
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 2
call fcn.00428810
jmp 0x480c87
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0xc8]
or dword [ebp - 0x90], 0x40
mov edi, dword [ebp - 0xa0]
push ecx
mov ecx, eax
mov dword [ebp - 0x50], eax
call fcn.004394c0
push str.Link
push eax
call fcn.004291f0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 0x45], al
call fcn.00428810
cmp byte [ebp - 0x45], 0
je 0x481288
lea eax, [ebp - 0x84]
push eax
push ecx
mov ecx, esp
push str.Text
call fcn.00428840
mov ecx, dword [ebp - 0x50]
call fcn.00439650
test eax, eax
je 0x481288
lea eax, [ebp - 0x74]
push eax
push ecx
mov ecx, esp
push 0x789498
call fcn.00428840
mov ecx, dword [ebp - 0x50]
call fcn.00439650
test eax, eax
je 0x481288
lea eax, [ebp - 0x84]
push eax
push 0x783bbc
lea eax, [ebp - 0xc4]
push eax
call fcn.00428c80
push 0x783bbc
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 5
push eax
call fcn.00428bd0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.004289a0
lea ecx, [ebp - 0xdc]
call fcn.00428810
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 4
call fcn.00428810
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x60]
or dword [ebp - 0x90], 0x10
mov dword [ebp - 0xa0], 0xff0000ff
mov eax, dword [edx - 8]
mov dword [ebp - 0x78], eax
call fcn.0047ce90
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
push eax
call fcn.00482600
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x84]
add eax, dword [ebp - 0x68]
push 0x790eb0
mov dword [ebp - 0x64], eax
call fcn.00428a30
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x74]
and dword [ebp - 0x90], 0xffffffaf
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xbc]
push 0x790eb0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x78], 0
call fcn.00428a30
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x50], edi
inc dword [eax + 0x64]
jmp 0x4810af
mov edi, dword [ebp - 0x50]
mov esi, eax
jmp 0x480c8d
push 0x7da8d8
lea eax, [ebp - 0x45]
mov byte [ebp - 0x45], 0
push eax
call fcn.006b4394
sbb eax, eax
or eax, 1
test eax, eax
je 0x481366
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
push eax
call fcn.00482600
mov ebx, dword [ebp - 0xc0]
mov ecx, ebx
push 0xffffffffffffffff
mov esi, dword [ebx + 4]
lea eax, [esi + 1]
push eax
call fcn.00482780
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x8c]
mov dword [ecx + esi*4], eax
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x60]
push dword [ebx + 8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebx + 0x20]
test edx, edx
jle 0x48139e
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
add eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [ebx + 0x14], eax
dec edx
jne 0x481393
mov ecx, dword [ebp - 0x74]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ecx - 0xc]
cmp eax, 0x7e8698
je 0x4813c4
lea esi, [ecx - 0xc]
push esi
call ebx
test eax, eax
jg 0x4813c4
push esi
call fcn.006b31f8
add esp, 4
mov ecx, dword [ebp - 0x50]
lea eax, [ecx - 0xc]
cmp eax, 0x7e8698
je 0x4813e4
lea esi, [ecx - 0xc]
push esi
call ebx
test eax, eax
jg 0x4813e4
push esi
call fcn.006b31f8
add esp, 4
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x48140b
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x48140b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
push ecx
call fcn.006b31f8
add esp, 4
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x1c