Function at 0x46a060
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb225
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc70
mov eax, dword [0x54c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
mov dword [ebp - 0xc6c], 0
mov ecx, esp
mov dword [ebp - 0xc6c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 1
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x519a18
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push 0x5199ec
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0xc68]
mov dword [ebp - 4], 0xffffffff
call fcn.00464540
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xc68]
push dword [edi + 0x248]
call fcn.00464170
cmp eax, 1
jne 0x46a849
mov esi, dword [edi + 0x248]
lea eax, [ebp - 0x8b8]
push 0x58
push 0
push eax
call fcn.004c5110
xor eax, eax
mov dword [ebp - 0x860], 1
mov word [ebp - 0x65c], ax
add esp, 0xc
mov word [ebp - 0x85c], ax
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x894], eax
lea eax, [ebp - 0x8b8]
push eax
mov dword [ebp - 0x8b8], 0x58
mov dword [ebp - 0x898], 0x104
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x890], 0x100
mov dword [ebp - 0x884], 0x88002e
mov dword [ebp - 0x8ac], 0x519940
mov dword [ebp - 0x8b4], esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp eax, 1
jne 0x46a849
push eax
mov ecx, edi
call fcn.0046b670
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x65c]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a206
sub ecx, edx
lea eax, [ebp - 0x65c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004197f0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
call fcn.0046b7c0
mov esi, eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0047a270
push 1
push 0x50d954
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004195e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0xc7c]
lea ecx, [ebp - 0x54]
call fcn.0041dcf0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x46a2d1
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46a2c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a872
push ecx
push edx
call fcn.004c04a1
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.004177f0
lea ecx, [ebp - 0xa0]
call fcn.004177f0
xorps xmm0, xmm0
mov dword [ebp - 0x160], 0x50de70
lea ecx, [ebp - 0xe8]
movlpd qword [ebp - 0xc80], xmm0
mov dword [ebp - 0x150], 0x50d8dc
call fcn.0040e2f0
push ecx
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x160]
mov dword [ebp - 0xc6c], 7
call fcn.00417290
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x164], eax
lea ecx, [ebp - 0x148]
call fcn.00417750
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 7
push ecx
cmova eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x148]
push 0x61
push eax
call fcn.00417690
test eax, eax
lea ecx, [ebp - 0x160]
mov eax, dword [ebp - 0x160]
je 0x46a3ab
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x46a3c0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00403ec0
cmp dword [ebp - 0xfc], 0
je 0x46a439
sub esp, 0xc
lea ecx, [ebp - 0x160]
call fcn.0041da60
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x160]
call fcn.0041d960
mov esi, dword [eax + 8]
add esi, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0xc6c], ecx
lea ecx, [ebp - 0x148]
call fcn.00417590
test eax, eax
jne 0x46a44b
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x160]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00403ec0
jmp 0x46a44b
mov eax, dword [ebp - 0xc7c]
mov esi, dword [ebp - 0xc80]
mov dword [ebp - 0xc6c], eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xb
call fcn.00419f70
mov eax, dword [ebp - 0xc6c]
add esi, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x46a765
jb 0x46a47c
cmp esi, 0xfffff
ja 0x46a765
cmp dword [ebp - 0x28], 7
lea eax, [ebp - 0x3c]
cmova eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.soui.dll_public:_static_struct_SOUI::IBitmap____cdecl_SOUI::SResLoadFromFile::LoadImageW_wchar_t_const__]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46a508
push ecx
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push esi
push 1
push ecx
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x519980
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x15
push 0x519a8c
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00464540
mov byte [ebp - 4], 0x16
jmp 0x46a7d2
mov eax, dword [esi]
lea ecx, [ebp - 0xc80]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x58]
call eax
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
mov dword [ebp - 0xc6c], edx
cmp edx, 0xc8
jle 0x46a543
imul eax, ecx, 0xc8
cdq
idiv dword [ebp - 0xc6c]
mov edx, 0xc8
mov ecx, eax
mov eax, edx
cmp ecx, 0xc8
jle 0x46a55b
imul eax, eax, 0xc8
cdq
idiv ecx
mov ecx, 0xc8
mov edx, eax
push 3
push ecx
mov dword [ebp - 0xc70], 0
lea ecx, [ebp - 0xc70]
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
mov eax, dword [eax + 0x6c]
call eax
mov edx, dword [esi + 4]
lea ecx, [esi + 4]
test eax, eax
je 0x46a5f8
call dword [edx + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 1
push ecx
mov byte [ebp - 4], 0x18
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x519980
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x19
push 0x519a8c
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00464540
mov byte [ebp - 4], 0x1a
jmp 0x46a7d2
cmp dword [ebp - 0xc70], 0
mov eax, dword [edx + 4]
jne 0x46a678
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 1
push ecx
mov byte [ebp - 4], 0x1c
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x519980
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x1d
push 0x519a8c
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00464540
mov byte [ebp - 4], 0x1e
jmp 0x46a7d2
call eax
mov ecx, dword [ebp - 0xc70]
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 7
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], 0xb96b3caf
cmova edx, dword [ebp - 0x54]
mov dword [ebp - 0x20], 0x11d30728
mov dword [ebp - 0x1c], 0x7b9d
mov dword [ebp - 0x18], 0x2ef31ef8
mov eax, dword [ecx]
push esi
push edx
mov eax, dword [eax + 0x74]
call eax
mov ecx, dword [ebp - 0xc70]
add ecx, 4
test eax, eax
mov eax, dword [ecx]
je 0x46a737
call dword [eax + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 0x1f
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 1
push ecx
mov byte [ebp - 4], 0x20
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x519980
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x21
push 0x519a8c
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00464540
mov byte [ebp - 4], 0x22
jmp 0x46a7d2
call dword [eax + 4]
mov esi, dword [edi + 0x248]
call fcn.0041e8c0
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
push 0x46a880
cmova eax, dword [ebp - 0x54]
push eax
push esi
call dword [0x5558c4]
add esp, 0xc
jmp 0x46a7f7
push ecx
mov ecx, esp
mov dword [ebp - 0xc7c], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0xc78], esp
push 0x50d9a4
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0
push 1
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0xc74], esp
push 0x519924
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x11
push 0x5199a0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00464540
mov byte [ebp - 4], 0x12
push dword [edi + 0x248]
lea ecx, [ebp - 0x450]
call fcn.00464170
push 0
mov ecx, edi
call fcn.0046b670
lea ecx, [ebp - 0x450]
call fcn.00464690
lea ecx, [ebp - 0x54]
call fcn.004177f0
mov ecx, dword [ebp - 0x28]
cmp ecx, 7
jbe 0x46a835
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46a82b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a877
push ecx
push edx
call fcn.004c04a1
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0xc68]
call fcn.00464690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c048e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004cfc7c
call fcn.004cfc7c
int3