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

Disassembly:
push 0xffffffffffffffff
push 0x5df73a
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor edi, edi
cmp dword [ecx + 0x10], edi
jne 0x53779b
xor eax, eax
jmp 0x537aa2
mov esi, dword [esp + 0xdc]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
call fcn.004b8090
mov ecx, eax
call fcn.004a0800
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateMatrix
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0xd4], edi
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateMatrix
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateMatrix
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
mov byte [esp + 0xd4], 2
call fcn.004b8590
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004b8590
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipInvertMatrix
cmp eax, edi
je 0x537844
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xd8]
lea edx, [esp + 0x1c]
push edx
call fcn.004b8590
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
call sub.gdiplus.dll_GdipMultiplyMatrix
cmp eax, edi
je 0x53786d
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x70], ecx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], edx
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.0049feb0
fld dword [esp + 0x7c]
fld qword [0x659f30]
add esp, 0xc
fadd st(1), st(0)
fxch st(1)
call fcn.0044eb60
fadd dword [esp + 0x74]
mov ebp, eax
call fcn.0044eb60
push 0x10
mov esi, eax
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x5378e5
push 0x26200a
push esi
push ebp
mov ecx, eax
call fcn.0040d030
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x5378eb
mov dword [esp + 0x14], edi
mov ebx, edi
lea eax, [esp + 0x18]
push eax
push edi
push 0x21808
push edi
push esi
push ebp
mov dword [esp + 0x70], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x30], edi
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x74]
push edx
push eax
push ebx
mov byte [esp + 0xe8], 3
call fcn.005375d0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov edx, dword [esp + 0xf8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x8c]
push ecx
push edx
lea eax, [esp + 0x84]
push eax
call fcn.005375d0
mov eax, dword [esp + 0x48]
add esp, 0x30
lea ecx, [esp + 0x78]
push ecx
push 0x21808
push 1
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], esi
call sub.gdiplus.dll_GdipBitmapLockBits
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x90]
push ecx
push 0x26200a
push 2
lea edx, [esp + 0x64]
push edx
push eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, edi
je 0x5379ce
mov dword [ebx + 8], eax
cmp esi, edi
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
jle 0x537a55
mov dword [esp + 0x30], esi
lea esp, [esp]
cmp ebp, edi
jle 0x537a38
lea esi, [eax + 1]
lea edi, [ecx + 3]
mov ebx, ebp
lea esp, [esp]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi - 1]
movzx eax, byte [esi]
add ecx, edx
add ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [edi], al
add esi, 3
add edi, 4
sub ebx, 1
jne 0x537a00
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
xor edi, edi
add eax, dword [esp + 0x80]
add ecx, dword [esp + 0x98]
sub dword [esp + 0x30], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
jne 0x5379f0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
push esi
call sub.gdiplus.dll_GdipBitmapUnlockBits
mov eax, dword [ebx + 4]
lea edx, [esp + 0x90]
push edx
push eax
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, edi
je 0x537a7c
mov dword [ebx + 8], eax
push esi
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteMatrix
mov edx, dword [esp + 0x24]
push edx
call sub.gdiplus.dll_GdipDeleteMatrix
mov eax, dword [esp + 0x40]
push eax
call sub.gdiplus.dll_GdipDeleteMatrix
mov eax, ebx
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 8