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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x554
mov ecx, dword [ebp + 8]
push ebx
mov al, 5
cmp al, byte [ecx + 2]
mov ecx, dword [0x515e10]
push esi
sbb esi, esi
and esi, dword [0x515e24]
xor ebx, ebx
push edi
mov dword [esp + 0x54], ecx
cmp ecx, ebx
je 0x482024
call fcn.0041bc60
cmp esi, ebx
je 0x482032
test byte [esi + 0x15], 2
je 0x482032
mov al, 1
jmp 0x482034
xor al, al
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x19], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
test al, al
je 0x482214
cmp byte [esi + 0x17], bl
jne 0x482068
mov esi, dword [esi + 0xc]
mov esi, dword [esi]
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0xcc]
mov edi, 5
push eax
mov ecx, esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc0], str.xywh
mov dword [esp + 0xc4], ebx
call fcn.0041c230
test al, al
je 0x482214
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x80], 0x507aa8
mov dword [esp + 0x84], ebx
call fcn.0041c230
test al, al
je 0x482214
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], 0x507aac
mov dword [esp + 0x64], ebx
call fcn.0041c230
test al, al
je 0x482214
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa0], 0x507ab0
mov dword [esp + 0xa4], ebx
call fcn.0041c230
test al, al
je 0x482214
mov eax, dword [esp + 0xd0]
cmp eax, 1
jne 0x482156
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x38], ecx
jmp 0x482176
cmp eax, edi
jne 0x48216c
mov esi, dword [esp + 0xc8]
call fcn.0041bbf0
mov dword [esp + 0x2c], edx
jmp 0x482172
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
cmp eax, 1
jne 0x482189
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
jmp 0x4821a6
cmp eax, edi
jne 0x48219c
mov esi, dword [esp + 0x68]
call fcn.0041bbf0
mov dword [esp + 0x2c], edx
jmp 0x4821a2
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x4821bb
mov eax, dword [esp + 0x88]
jmp 0x4821d7
cmp eax, edi
jne 0x4821d1
mov esi, dword [esp + 0x88]
call fcn.0041bbf0
mov dword [esp + 0x2c], edx
jmp 0x4821d7
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
cmp eax, 1
jne 0x4821f4
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x40], ecx
jmp 0x482214
cmp eax, edi
jne 0x48220a
mov esi, dword [esp + 0xa8]
call fcn.0041bbf0
mov dword [esp + 0x2c], edx
jmp 0x482210
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], eax
mov esi, dword [ebp + 0x18]
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x44], bl
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], 1
mov dword [esp + 0x50], ebx
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], bl
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x48224d
cmp eax, 9
jne 0x482252
add esi, 2
jmp 0x482240
cmp word [esi], 0x2a
jne 0x4826e0
jmp 0x482264
mov esi, dword [esp + 0x14]
push 3
add esi, 2
push 0x507ab4
mov dword [esp + 0x1c], esi
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x482295
add esi, 6
mov byte [esp + 0x1b], 1
jmp 0x482562
push 0xd
push 0x507acc
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x48235a
movzx eax, word [esi + 0x1a]
add esi, 0x1a
test ax, ax
je 0x48234b
cmp eax, 0x20
je 0x48234b
cmp eax, 9
je 0x48234b
push 0x3b
lea edx, [esp + 0xdc]
push esi
push edx
call fcn.004c67b5
xor eax, eax
mov word [esp + 0x15a], ax
add esp, 0xc
mov ebx, 0x4e6dc4
lea eax, [esp + 0xd8]
call fcn.00409df0
test eax, eax
je 0x48230b
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0xd8], 0
je 0x48234b
lea eax, [esp + 0xd8]
call fcn.0040f110
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.004c6c2a
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x482562
mov byte [esp + 0x10], 1
mov byte [esp + 0x13], 1
jmp 0x482562
push 9
push 0x507af8
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x482384
add esi, 0x12
mov byte [esp + 0x1a], 1
jmp 0x482562
push 0xc
push 0x507b1c
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4823ae
add esi, 0x18
mov byte [esp + 0x19], 1
jmp 0x482562
push 6
push 0x507b48
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4823d8
add esi, 0xc
mov byte [esp + 0x44], 1
jmp 0x482562
push 5
push 0x507b68
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x482415
add esi, 0xa
mov ecx, esi
lea edi, [esp + 0x4c]
call fcn.00493710
test al, al
jne 0x482562
mov byte [esp + 0x10], 1
jmp 0x482562
push 0xa
push 0x507b84
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x48245b
add esi, 0x14
mov ecx, esi
lea edi, [esp + 0x24]
call fcn.00493710
test al, al
jne 0x48244e
mov byte [esp + 0x10], 1
jmp 0x482562
and dword [esp + 0x24], 0xffffff
jmp 0x482562
push 7
push str.R7__317
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x482647
push 0xa
push 0x507bcc
add esi, 0xe
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4824aa
add esi, 0x14
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], al
jmp 0x4824fb
push 4
push 0x507bf4
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x4824ce
mov byte [esp + 0x11], 1
jmp 0x4824f3
push 4
push 0x4ec7dc
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x48240b
mov byte [esp + 0x11], al
add esi, 8
mov byte [esp + 0x12], 1
cmp byte [esp + 0x10], 0
mov dword [esp + 0x14], esi
jne 0x482562
cmp dword [esp + 0x1c], 0
jne 0x482562
push 0x207
lea ecx, [esp + 0x154]
push esi
push ecx
call fcn.004c67b5
xor edx, edx
add esp, 0xc
mov ebx, 0x4e6dc4
lea eax, [esp + 0x150]
mov word [esp + 0x55e], dx
call fcn.00409df0
test eax, eax
je 0x482547
xor ecx, ecx
mov word [eax], cx
cmp byte [esp + 0x11], 0
je 0x4825b6
lea esi, [esp + 0x150]
call fcn.0041bbf0
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4826b0
movzx eax, word [esi]
test ax, ax
je 0x4826b0
jmp 0x482580
movzx edx, ax
mov ecx, 0x4e6dc4
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x482687
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x482590
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x482580
jmp 0x4826b0
push 0x207
lea edx, [esp + 0x154]
push esi
push edx
call fcn.004c67b5
xor eax, eax
add esp, 0xc
cmp word [esp + 0x150], 0x3c
mov word [esp + 0x55e], ax
jne 0x482562
mov ebx, 0x507c10
lea eax, [esp + 0x152]
call fcn.00409df0
test eax, eax
je 0x482562
xor ecx, ecx
push ecx
push ecx
push ecx
mov word [eax], cx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x160]
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x166]
lea eax, [esi + eax*2 + 2]
push 0
push edx
mov dword [esp + 0x30], eax
call fcn.004a8870
add esp, 0x1c
cmp dword [esp + 0x28], 1
mov dword [esp + 0x1c], eax
jne 0x48255e
mov byte [esp + 0x10], 1
jmp 0x48255e
cmp word [esi], 0
je 0x482562
call fcn.0040f170
mov dword [esp + 0x20], eax
test eax, eax
jns 0x48266b
mov dword [esp + 0x20], 0
jmp 0x48255e
mov esi, dword [esp + 0x14]
cmp eax, 0xff
jle 0x482562
mov dword [esp + 0x20], 0xff
jmp 0x482562
mov eax, esi
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x48269d
cmp ecx, 9
jne 0x4826a2
add eax, 2
jmp 0x482690
cmp word [eax], 0x2a
mov dword [esp + 0x14], eax
je 0x482260
cmp byte [esp + 0x1b], 0
je 0x4826d7
mov eax, dword [ebp + 0x14]
mov ecx, eax
movzx edx, al
shr ecx, 0x10
and ecx, 0xff
shl edx, 0x10
or ecx, edx
and eax, 0xff00
or ecx, eax
mov dword [ebp + 0x14], ecx
cmp byte [esp + 0x10], 0
jne 0x482735
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x58]
push edi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
push esi
call fcn.00482810
add esp, 0x34
mov dword [esp + 0x48], eax
cmp eax, ebx
jne 0x48273b
mov byte [esp + 0x13], 1
jmp 0x48273b
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp byte [esp + 0x1a], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
jne 0x48274f
test esi, esi
je 0x48274f
push esi
call ebx
cmp byte [esp + 0x19], 0
jne 0x48275d
test edi, edi
je 0x48275d
push edi
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x482776
cmp byte [esp + 0x11], 0
je 0x482773
cmp byte [esp + 0x12], 0
je 0x482776
push eax
call ebx
cmp byte [esp + 0x13], 0
je 0x4827c8
mov edx, dword [0x51161c]
test byte [edx + 0x100], 1
jne 0x4827ab
mov eax, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6e3c
push eax
call fcn.004aa2a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
push 0x4e1a4c
push 0
push 0x4e6e3c
call fcn.0042ef30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4827e8
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4827e6
mov eax, esi
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.00401590
test esi, esi
mov eax, dword [ebp + 8]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042efe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14