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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x568008]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x5c], edx
mov ebx, ecx
mov dword [esp + 0x60], esi
xorps xmm1, xmm1
mov dword [esp + 0x50], ebx
xorps xmm2, xmm2
movss dword [esp + 0x58], xmm1
push edi
movss dword [esp + 0x58], xmm2
xor edi, edi
lea eax, [esp + 0x70]
mov dword [esp + 0x68], edi
push eax
push dword [ebx + 4]
mov dword [esp + 0x78], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x53d21d
mov dword [ebx + 8], eax
cmp edi, dword [esp + 0x70]
jae 0x53d744
xor ebp, ebp
nop dword [eax]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x53d24d
mov dword [ebx + 8], eax
cmp ebp, dword [esp + 0x70]
jae 0x53d73e
mov ch, 0x56
mov byte [esp + 0x42], 0
mov al, 0x35
mov byte [esp + 0x3c], ch
mov cl, 0x20
mov byte [esp + 0x42], 0
mov dl, al
mov dword [esp + 0x9c], 0
xor cl, ch
mov dword [esp + 0xa0], 0
xor dl, ch
mov byte [esp + 0x3e], cl
mov bl, 0x14
mov byte [esp + 0x3f], dl
xor al, ch
xor bl, ch
mov ah, 0x13
mov byte [esp + 0x3d], al
xor ah, ch
mov byte [esp + 0x40], bl
mov esi, 0xff000000
mov byte [esp + 0x41], ah
xorps xmm0, xmm0
mov dword [esp + 0x70], esi
lea ecx, [esp + 0x3d]
movups xmmword [esp + 0x8c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d2c0
sub ecx, edx
lea eax, [esp + 0x3d]
push ecx
push eax
lea ecx, [esp + 0x94]
call fcn.004a2240
mov ah, 0x76
mov byte [esp + 0x31], 0
mov cl, 0x3f
mov byte [esp + 0x2c], ah
xor cl, ah
mov byte [esp + 0x31], 0
mov dl, 0x19
mov byte [esp + 0x2e], cl
mov al, 0xf
mov dword [esp + 0xb4], 0
xor dl, ah
mov dword [esp + 0xb8], 0
mov bl, 0x2c
mov byte [esp + 0x2f], dl
xor al, ah
lea ecx, [esp + 0x2d]
xor bl, ah
mov byte [esp + 0x2d], al
xorps xmm0, xmm0
mov byte [esp + 0x30], bl
movups xmmword [esp + 0xa4], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d333
sub ecx, edx
lea eax, [esp + 0x2d]
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.004a2240
mov ch, 0x10
mov byte [esp + 0x4a], 0
mov cl, 0x48
mov byte [esp + 0x44], ch
xor cl, ch
mov byte [esp + 0x4a], 0
mov al, 0x4a
mov byte [esp + 0x46], cl
xor al, ch
mov dword [esp + 0x84], 0
mov dl, 0x52
mov byte [esp + 0x45], al
xor dl, ch
mov dword [esp + 0x88], 0
mov ah, 0x60
mov byte [esp + 0x47], dl
xor ah, ch
mov bl, 0x45
xor bl, ch
mov byte [esp + 0x49], ah
mov ecx, 1
mov byte [esp + 0x48], bl
cmp dword [esp + 0x9c], ecx
lea eax, [esp + 0x8c]
xorps xmm0, xmm0
cmovb ecx, dword [esp + 0x9c]
cmp dword [esp + 0xa0], 0x10
push ecx
cmovae eax, dword [esp + 0x90]
lea ecx, [esp + 0x78]
push eax
movups xmmword [esp + 0x7c], xmm0
call fcn.004a2240
lea edx, [esp + 0x45]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x53d3e1
mov ebx, dword [esp + 0x88]
lea eax, [esp + 0x45]
mov edi, dword [esp + 0x74]
sub edx, ecx
push edx
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x78]
cmp ebx, 0x10
push eax
cmovae ecx, edi
call fcn.004a23e0
add esp, 8
mov byte [esp + 0x2b], al
cmp ebx, 0x10
jb 0x53d44c
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x53d43e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push edi
call fcn.004a60c5
mov al, byte [esp + 0x33]
add esp, 8
test al, al
je 0x53d4ab
mov ch, 0x5c
mov byte [esp + 0x52], 0
mov cl, 0x15
mov byte [esp + 0x4c], ch
mov dl, 0x3d
mov byte [esp + 0x52], 0
xor cl, ch
xor dl, ch
mov al, 0x25
mov byte [esp + 0x4e], cl
mov bl, 0x3e
mov byte [esp + 0x4f], dl
xor al, ch
xor bl, ch
mov ah, 9
mov byte [esp + 0x4d], al
xor ah, ch
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x4d]
mov byte [esp + 0x51], ah
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d490
sub ecx, edx
lea eax, [esp + 0x4d]
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.004a1de0
mov ecx, dword [esp + 0xb8]
cmp ecx, 0x10
jb 0x53d4e7
mov edx, dword [esp + 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x53d4dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push edx
call fcn.004a60c5
add esp, 8
mov ecx, dword [esp + 0xa0]
cmp ecx, 0x10
jb 0x53d523
mov edx, dword [esp + 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x53d519
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push edx
call fcn.004a60c5
add esp, 8
mov edi, dword [esp + 0x68]
lea eax, [esp + 0xbc]
mov ebx, dword [esp + 0x54]
push eax
push edi
push ebp
push dword [ebx + 4]
mov dword [esp + 0x7c], esi
call dword [sym.imp.gdiplus.dll_GdipBitmapGetPixel]
test eax, eax
je 0x53d54b
mov dword [ebx + 8], eax
jmp 0x53d556
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x70], esi
lea eax, [esp + 0xc0]
push eax
mov eax, dword [esp + 0x64]
push edi
push ebp
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapGetPixel]
test eax, eax
je 0x53d57e
mov ecx, dword [esp + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x6c]
jmp 0x53d585
mov eax, dword [esp + 0xc0]
mov ecx, esi
mov esi, dword [esp + 0x64]
shr ecx, 8
cmp cl, 0xff
lea edx, [esi + 1]
cmovne edx, esi
shr eax, 8
mov esi, edx
mov dword [esp + 0x64], esi
cmp al, 0xff
je 0x53d738
mov ch, 0x3a
mov byte [esp + 0x26], 0
mov cl, 0xf
mov byte [esp + 0x20], ch
mov dl, 0x6a
mov byte [esp + 0x26], 0
xor cl, ch
mov dword [esp + 0x84], 0
xor dl, ch
mov byte [esp + 0x22], cl
mov al, 0x43
mov byte [esp + 0x23], dl
mov bl, 0x40
mov dword [esp + 0x88], 0
xor al, ch
xor bl, ch
mov ah, 3
mov byte [esp + 0x21], al
xor ah, ch
mov byte [esp + 0x24], bl
xorps xmm0, xmm0
mov byte [esp + 0x25], ah
lea ecx, [esp + 0x21]
movups xmmword [esp + 0x74], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d605
sub ecx, edx
lea eax, [esp + 0x21]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.004a2240
mov dh, 0x30
mov byte [esp + 0x1b], 0
xor dl, dl
mov byte [esp + 0x14], dh
mov cl, 0x72
mov al, 0x5a
xor cl, dh
mov bl, 0x74
mov ah, 0x63
mov byte [esp + 0x16], cl
mov ch, 0x6a
xor al, dh
xor dl, dh
mov byte [esp + 0x15], al
xor bl, dh
mov byte [esp + 0x17], dl
xor ah, dh
mov byte [esp + 0x18], bl
xor ch, dh
mov byte [esp + 0x19], ah
mov byte [esp + 0x1a], ch
lea ecx, [esp + 0x15]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d660
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.004a1de0
mov ah, 0x68
mov byte [esp + 0x39], 0
mov cl, 0x20
mov byte [esp + 0x34], ah
xor cl, ah
mov byte [esp + 0x39], 0
mov dl, 0x3b
mov byte [esp + 0x36], cl
mov al, 0x12
lea ecx, [esp + 0x35]
xor dl, ah
mov bl, 0x2d
xor al, ah
mov byte [esp + 0x37], dl
xor bl, ah
mov byte [esp + 0x35], al
mov byte [esp + 0x38], bl
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d6b0
sub ecx, edx
lea eax, [esp + 0x35]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.004a1de0
mov ecx, dword [esp + 0x88]
cmp ecx, 0x10
jb 0x53d701
mov edx, dword [esp + 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x53d6f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push edx
call fcn.004a60c5
add esp, 8
movss xmm0, dword [esp + 0x58]
movss xmm1, dword [0x556bac]
mov eax, dword [esp + 0x70]
addss xmm0, xmm1
mov ebx, dword [esp + 0x54]
shr eax, 0x10
movss dword [esp + 0x58], xmm0
test al, al
jne 0x53d738
movss xmm0, dword [esp + 0x5c]
addss xmm0, xmm1
movss dword [esp + 0x5c], xmm0
inc ebp
jmp 0x53d230
inc edi
jmp 0x53d1fc
cmp esi, 0x32
jle 0x53da86
mov byte [esp + 0x14], 0x45
mov al, 0x2d
xor al, byte [esp + 0x14]
mov cl, 0x7d
mov ch, 0x14
mov byte [esp + 0x15], al
mov al, byte [esp + 0x14]
mov dl, 0x76
xor cl, al
mov byte [esp + 0x1d], 0
xor ch, al
mov byte [esp + 0x16], cl
mov dh, 0x2a
mov byte [esp + 0x1a], ch
mov bl, 0x12
mov byte [esp + 0x1d], 0
mov ah, 0x11
mov dword [esp + 0x9c], 0
xor dl, al
mov dword [esp + 0xa0], 0
xor dh, al
mov byte [esp + 0x17], dl
mov bh, 0x1d
mov byte [esp + 0x1b], dh
xor bl, al
lea ecx, [esp + 0x15]
xor ah, al
mov byte [esp + 0x18], bl
xor bh, al
mov byte [esp + 0x19], ah
xorps xmm0, xmm0
mov byte [esp + 0x1c], bh
movups xmmword [esp + 0x8c], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d7d0
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x94]
call fcn.004a2240
mov dh, 0x6c
mov byte [esp + 0x1b], 0
mov cl, 6
mov byte [esp + 0x14], dh
mov bl, cl
mov byte [esp + 0x1b], 0
mov dl, 0x54
mov dword [esp + 0x84], 0
mov ch, cl
mov dword [esp + 0x88], 0
xor cl, dh
mov al, 4
mov ah, 0x29
mov byte [esp + 0x16], cl
xor al, dh
xor dl, dh
xor bl, dh
mov byte [esp + 0x17], dl
xor ah, dh
mov byte [esp + 0x15], al
xor ch, dh
mov byte [esp + 0x18], bl
mov byte [esp + 0x1a], ch
xorps xmm0, xmm0
lea ecx, [esp + 0x15]
mov byte [esp + 0x19], ah
movups xmmword [esp + 0x74], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d850
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.004a2240
mov dh, 0x10
mov byte [esp + 0x1b], 0
mov dl, 0x21
mov byte [esp + 0x14], dh
mov ch, dl
mov byte [esp + 0x1b], 0
mov cl, 0x76
xor dl, dh
xor cl, dh
mov byte [esp + 0x17], dl
mov al, 0x5c
mov byte [esp + 0x16], cl
mov bl, 0x7a
mov ah, 0x41
xor al, dh
xor bl, dh
xor ah, dh
mov byte [esp + 0x15], al
xor ch, dh
mov byte [esp + 0x18], bl
lea edx, [esp + 0x15]
mov byte [esp + 0x1a], ch
mov byte [esp + 0x19], ah
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x53d8b0
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x15]
mov esi, dword [esp + 0x74]
sub edx, ecx
push edx
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x78]
cmp edi, 0x10
push eax
cmovae ecx, esi
call fcn.004a23e0
add esp, 8
test al, al
je 0x53d9ec
mov ch, 0x6c
mov byte [esp + 0x26], 0
mov cl, 0x16
mov byte [esp + 0x20], ch
mov dl, 0xb
mov byte [esp + 0x26], 0
xor cl, ch
mov dword [esp + 0xb4], 0
xor dl, ch
mov byte [esp + 0x22], cl
mov al, 0x28
mov byte [esp + 0x23], dl
mov bl, 3
mov dword [esp + 0xb8], 0
xor al, ch
xor bl, ch
mov ah, 0x5f
mov byte [esp + 0x21], al
xor ah, ch
mov byte [esp + 0x24], bl
xorps xmm0, xmm0
mov byte [esp + 0x25], ah
lea ecx, [esp + 0x21]
movups xmmword [esp + 0xa4], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53d950
sub ecx, edx
lea eax, [esp + 0x21]
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.004a2240
mov ch, 0x63
mov byte [esp + 0x26], 0
mov al, 0x2d
mov byte [esp + 0x20], ch
mov ah, 0x39
mov byte [esp + 0x26], 0
xor al, ch
xor ah, ch
mov cl, 0xa
mov byte [esp + 0x21], al
xor cl, ch
mov byte [esp + 0x25], ah
mov dl, 0x10
mov byte [esp + 0x22], cl
mov bl, 0x2b
lea eax, [esp + 0x21]
xor dl, ch
xor bl, ch
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], bl
call fcn.004a1aa0
mov ecx, dword [esp + 0xb8]
cmp ecx, 0x10
jb 0x53d9ec
mov edx, dword [esp + 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x53d9e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push edx
call fcn.004a60c5
add esp, 8
cmp edi, 0x10
jb 0x53da18
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x53da0e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53da46
push ecx
push esi
call fcn.004a60c5
add esp, 8
mov ecx, dword [esp + 0xa0]
cmp ecx, 0x10
jb 0x53da56
mov edx, dword [esp + 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x53da4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x53da4c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004a60c5
add esp, 8
movss xmm2, dword [esp + 0x58]
divss xmm2, dword [0x556d6c]
movss xmm1, dword [esp + 0x5c]
divss xmm1, xmm2
divss xmm1, dword [0x556d6c]
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x556c18]
setae al
jmp 0x53da88
xor al, al
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a6087
add esp, 0xbc
ret