Function at 0x100012f0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp ecx, edi
je 0x100015df
jge 0x10001383
mov eax, 0xfffffffe
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x1000134d
push edi
lea edx, [esp + 0x14]
push edi
push edx
mov edx, dword [esp + 0x30]
mov esi, 0xf
push edx
push ecx
mov ecx, dword [eax*4 + 0x100c6a00]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::CopyTo_class_CxDDSurface___struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x14]
push edi
mov esi, 0xf
push ecx
mov ecx, dword [eax*4 + 0x100c6a00]
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::Draw_struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp ecx, edi
jle 0x100015df
lea esi, [ecx - 1]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, 1
mov ebp, edx
mov dword [esp + 0x28], ebp
jl 0x100013bb
cmp ecx, 0x64
jg 0x100013bb
mov eax, esi
mov ecx, 0xa
cdq
idiv ecx
jmp 0x100013d9
cmp ecx, 0x65
jl 0x100013d5
cmp ecx, 0xc8
jg 0x100013d5
lea eax, [ecx - 0x65]
mov ecx, 0xa
cdq
idiv ecx
jmp 0x100013d9
mov edx, dword [esp + 0x24]
cmp ebp, 0x13
jg 0x100015df
cmp edx, 9
ja case.0x100013e7.0
jmp dword [edx*4 + 0x100015e8]
mov eax, 1
jmp 0x1000142f
mov eax, 4
jmp 0x1000142f
mov eax, 5
jmp 0x1000142f
mov eax, 9
jmp 0x1000142f
mov eax, 0x12
jmp 0x1000142f
mov eax, 0x13
jmp 0x1000142f
mov eax, 0x19
jmp 0x1000142f
mov eax, 0x1c
jmp 0x1000142f
mov eax, 0x1d
jmp 0x1000142f
xor eax, eax
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
je 0x1000151c
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x10]
shl eax, 6
add eax, 0x100c777c
mov esi, 0xf
push eax
mov eax, dword [esp + 0x2c]
push 0xb
push edx
mov ecx, dword [eax*4 + 0x100c6a18]
push ebp
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::CopyTo_class_CxDDSurface___struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
cmp dword [esp + 0x30], edi
je 0x100014aa
push edi
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, dword [0x100c6a68]
push ebp
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::CopyTo_class_CxDDSurface___struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
cmp eax, edi
jl 0x100014e5
cmp eax, 9
jg 0x100014e5
mov ecx, dword [0x100c6a68]
push edi
lea edx, [esp + 0x14]
push 0x36
push edx
push ebp
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::CopyTo_class_CxDDSurface___struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 0xa
jl 0x100015df
mov ecx, dword [0x100c6a68]
push edi
lea eax, [esp + 0x14]
push 0x37
push eax
push ebp
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::CopyTo_class_CxDDSurface___struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
shl eax, 6
add eax, 0x100c777c
mov esi, 0xf
push eax
push 0xb
push ecx
mov ecx, dword [ebp*4 + 0x100c6a18]
mov ebp, dword [sym.imp.exstage.dll_public:_int___thiscall_CxFXSurface::Draw_struct_tagPOINT___struct_tagRECT___unsigned_long_int__unsigned_long_int_]
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call ebp
cmp dword [esp + 0x30], edi
je 0x10001583
mov ecx, dword [0x100c6a68]
push edi
lea edx, [esp + 0x14]
push edi
push edx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
cmp eax, edi
jl 0x100015b9
cmp eax, 9
jg 0x100015b9
mov ecx, dword [0x100c6a68]
push edi
lea eax, [esp + 0x14]
push 0x36
push eax
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 0xa
jl 0x100015df
push edi
lea ecx, [esp + 0x14]
push 0x37
push ecx
mov ecx, dword [0x100c6a68]
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret