Function at 0x5d32f0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov ebx, ecx
je 0x5d355e
mov esi, dword [edi + 4]
test esi, esi
je 0x5d355e
push esi
mov dword [esp + 0x1c], 0
call fcn.005d2190
test eax, eax
je 0x5d3388
mov ecx, esi
call fcn.00596a40
test eax, eax
je 0x5d355e
fild dword [edi]
mov ebx, dword [eax + 0x14]
fstp dword [esp + 0x1c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x5d3358
mov eax, dword [esi]
push str.GdipCreatePen1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x38], eax
lea ecx, [esp + 0x18]
xor eax, eax
push ecx
mov edx, dword [esp + 0x20]
mov al, bh
mov ecx, ebx
mov ah, bl
and ebx, 0xff000000
shr ecx, 0x10
shl eax, 8
and ecx, 0xff
push 0
or eax, ecx
push edx
or eax, ebx
push eax
call dword [esi + 0x38]
jmp 0x5d33f3
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
push esi
call fcn.005d2f90
mov ebx, eax
test ebx, ebx
je 0x5d33f3
fild dword [edi]
fstp dword [esp + 0x1c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x5d33c0
mov eax, dword [esi]
push str.GdipCreatePen2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x3c], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push ebx
call dword [esi + 0x3c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x5d33ef
mov eax, dword [esi]
push str.GdipDeleteBrush
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x44], eax
push ebx
call dword [esi + 0x44]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5d355e
mov ecx, dword [edi + 8]
push ebp
test ecx, ecx
je 0x5d34a8
call fcn.005909a0
cmp eax, 1
jne 0x5d345a
mov ecx, dword [edi + 8]
push 0
call fcn.00595760
fst dword [esp + 0x10]
fstp dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x5d3450
mov ecx, dword [esi]
push str.GdipSetPenDashArray
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xac], eax
lea edx, [esp + 0x10]
push 2
push edx
push ebx
jmp 0x5d34a2
mov ecx, dword [edi + 8]
call fcn.005909a0
mov ecx, dword [edi + 8]
mov ebx, eax
call fcn.00595750
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x5d349b
mov ecx, dword [esi]
push str.GdipSetPenDashArray
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xac], eax
mov edx, dword [esp + 0x20]
push ebx
push ebp
push edx
call dword [esi + 0xac]
mov ebp, dword [edi + 0x14]
test ebp, ebp
je 0x5d34e0
mov ebx, dword [esp + 0x1c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x5d34d8
mov eax, dword [esi]
push str.GdipSetPenLineJoin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xb0], eax
push ebp
push ebx
call dword [esi + 0xb0]
mov ebp, dword [edi + 0xc]
test ebp, ebp
je 0x5d3518
mov ebx, dword [esp + 0x1c]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x5d3510
mov ecx, dword [esi]
push str.GdipSetPenStartCap
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xb4], eax
push ebp
push ebx
call dword [esi + 0xb4]
mov edi, dword [edi + 0x10]
pop ebp
test edi, edi
je 0x5d3551
mov ebx, dword [esp + 0x18]
call fcn.005d22b0
mov esi, eax
mov eax, dword [esi + 0xb8]
test eax, eax
jne 0x5d3549
mov edx, dword [esi]
push str.GdipSetPenEndCap
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xb8], eax
push edi
push ebx
call dword [esi + 0xb8]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 8