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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov eax, dword [ebx]
mov esi, dword [edi]
mov dword [ebp + 8], esi
test eax, eax
je 0x5182fb
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebx], 0
test esi, esi
je 0x518353
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x518304
sub ebx, ecx
mov edx, 2
sar ebx, 1
xor ecx, ecx
lea esi, [ebx + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0058c8f0
lea eax, [ebx + ebx]
mov ebx, dword [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebx]
call fcn.0058bd80
add esp, 0x1c
mov eax, dword [ebx + 8]
xor ecx, ecx
mov edx, dword [ebx + 4]
sub eax, edx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 8], ecx
test eax, 0xfffffffc
jle 0x5183cd
nop dword [eax]
mov eax, dword [edx + ecx*4]
mov dword [ebp + 8], eax
test eax, eax
je 0x5183ba
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51838e
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5183a2
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
push 0x10
push eax
call fcn.0050ed4e
mov eax, dword [ebx + 4]
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [eax + ecx*4], 0
mov eax, dword [ebx + 8]
inc ecx
mov edx, dword [ebx + 4]
sub eax, edx
sar eax, 2
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x518370
mov dword [ebx + 8], edx
xor ecx, ecx
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
sub eax, edx
mov dword [ebp + 8], ecx
test eax, 0xfffffffc
jle 0x5184a1
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [edx + ecx*4], esi
je 0x518464
push 0x10
call fcn.0050ed1e
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x51841f
mov dword [esi], 0
mov byte [esi + 4], 0xff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x518421
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi + 8]
mov byte [esi + 4], cl
test eax, eax
je 0x51844c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x518461
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp dword [ebx + 0xc], eax
je 0x518474
mov dword [eax], esi
add dword [ebx + 8], 4
jmp 0x518484
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.00517010
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 8]
inc ecx
mov edx, dword [edi + 4]
sub eax, edx
sar eax, 2
mov dword [ebp + 8], ecx
cmp ecx, eax
jl 0x5183e8
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push dword [edi + 0x2c]
mov ebx, dword [ebp - 4]
push dword [edi + 0x28]
push dword [edi + 0x24]
lea ecx, [ebx + 0x10]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.0051ad20
push dword [edi + 0x54]
lea ecx, [ebx + 0x38]
push dword [edi + 0x50]
push dword [edi + 0x4c]
push dword [edi + 0x48]
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [edi + 0x3c]
push dword [edi + 0x38]
call fcn.0051ad20
push dword [edi + 0x7c]
lea ecx, [ebx + 0x60]
push dword [edi + 0x78]
push dword [edi + 0x74]
push dword [edi + 0x70]
push dword [edi + 0x6c]
push dword [edi + 0x68]
push dword [edi + 0x64]
push dword [edi + 0x60]
call fcn.0051ad20
push dword [edi + 0xa4]
lea ecx, [ebx + 0x88]
push dword [edi + 0xa0]
push dword [edi + 0x9c]
push dword [edi + 0x98]
push dword [edi + 0x94]
push dword [edi + 0x90]
push dword [edi + 0x8c]
push dword [edi + 0x88]
call fcn.0051ad20
push dword [edi + 0xcc]
lea ecx, [ebx + 0xb0]
push dword [edi + 0xc8]
push dword [edi + 0xc4]
push dword [edi + 0xc0]
push dword [edi + 0xbc]
push dword [edi + 0xb8]
push dword [edi + 0xb4]
push dword [edi + 0xb0]
call fcn.0051ad20
mov eax, dword [ebx + 0xdc]
add ebx, 0xd8
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edx, dword [ebx]
sub eax, edx
test eax, 0xfffffffc
jle 0x5185f1
mov eax, dword [edx + ecx*4]
mov dword [ebp + 8], eax
test eax, eax
je 0x5185df
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5185b4
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5185c8
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
push 0x10
push eax
call fcn.0050ed4e
mov eax, dword [ebx]
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [eax + ecx*4], 0
mov eax, dword [ebx + 4]
inc ecx
mov edx, dword [ebx]
sub eax, edx
sar eax, 2
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x518596
mov dword [ebx + 4], edx
xor ecx, ecx
mov eax, dword [edi + 0xdc]
mov edx, dword [edi + 0xd8]
sub eax, edx
mov dword [ebp + 8], ecx
test eax, 0xfffffffc
jle 0x5186cd
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [edx + ecx*4], esi
je 0x518691
push 0x10
call fcn.0050ed1e
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x518649
mov dword [esi], 0
mov byte [esi + 4], 0xff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x51864b
xor esi, esi
mov eax, dword [edi + 0xd8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi + 8]
mov byte [esi + 4], cl
test eax, eax
je 0x518679
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51868e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x5186a1
mov dword [eax], esi
add dword [ebx + 4], 4
jmp 0x5186b0
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, ebx
call fcn.00517010
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0xdc]
inc ecx
mov edx, dword [edi + 0xd8]
sub eax, edx
sar eax, 2
mov dword [ebp + 8], ecx
cmp ecx, eax
jl 0x518612
mov edx, dword [ebp - 4]
xor ebx, ebx
mov eax, dword [edi + 0xe4]
lea esi, [edx + 0xe8]
mov dword [edx + 0xe4], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [edi + 0xec]
mov ecx, dword [edi + 0xe8]
sub eax, ecx
test eax, 0xfffffffc
jle 0x518737
nop
lea eax, [ecx + ebx*4]
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x518715
mov eax, dword [eax]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x51871e
push eax
push ecx
mov ecx, esi
call fcn.00517170
mov eax, dword [edi + 0xec]
inc ebx
mov ecx, dword [edi + 0xe8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jl 0x518700
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xf4]
lea esi, [edx + 0xf4]
mov dword [esi + 4], eax
xor ebx, ebx
mov eax, dword [edi + 0xf8]
mov ecx, dword [edi + 0xf4]
sub eax, ecx
test eax, 0xfffffffc
jle 0x518797
nop dword [eax]
lea eax, [ecx + ebx*4]
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x518775
mov eax, dword [eax]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x51877e
push eax
push ecx
mov ecx, esi
call fcn.00517170
mov eax, dword [edi + 0xf8]
inc ebx
mov ecx, dword [edi + 0xf4]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jl 0x518760
mov edx, dword [ebp - 4]
movsd xmm0, qword [edi + 0x100]
mov eax, edx
movsd qword [edx + 0x100], xmm0
movsd xmm0, qword [edi + 0x108]
movsd qword [edx + 0x108], xmm0
movsd xmm0, qword [edi + 0x110]
pop edi
pop esi
movsd qword [edx + 0x110], xmm0
pop ebx
mov esp, ebp
pop ebp
ret 4