Function at 0x404755
Capabilities:
Check for time delay via gettickcount
Check http status code
Check internet connectivity via wininet
Create directory
Create http request
Download and write a file
Get common file path
Get http content length
Print debug messages
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cc45
mov eax, dword fs:[0]
push eax
mov eax, 0x10864
call fcn.0040c8f0
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x828], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
lea ecx, [ebp - 0x7dc]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x788]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x7c0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 4
jne 0x404800
push edi
push edi
push 0x4e20
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x824]
lea ecx, [ebp - 0x7dc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [ebp - 0x7dc]
push 0x2f
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char__unsigned_int_const]
mov ecx, dword [ebp - 0x7c8]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x7a4]
push eax
lea ecx, [ebp - 0x7dc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x7dc]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x7a4]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x105
lea eax, [ebx + 0x212]
push edi
push eax
mov dword [ebp - 0x82c], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, edi
mov dword [ebp - 0x818], edi
je 0x40492c
push esi
lea ecx, [ebp - 0x788]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp - 0x770], 0x10
mov eax, dword [ebp - 0x784]
jae 0x4048b2
lea eax, [ebp - 0x784]
cmp byte [eax], 0x5c
jne 0x4048f5
mov eax, dword [ebp - 0x774]
dec eax
push eax
push 1
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x788]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x788]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x86c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x770], 0x10
mov eax, dword [ebp - 0x784]
jae 0x40490a
lea eax, [ebp - 0x784]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x76c]
push 0x40eacc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x76c]
jmp 0x40499b
lea eax, [ebp - 0x15c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, edi
je 0x405045
cmp eax, esi
ja 0x405045
mov byte [ebp + eax - 0x15b], 0
lea eax, [ebp - 0x36c]
push eax
push edi
push 0x40eb44
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x404995
push 0x40eb2c
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x818], 1
jmp 0x405078
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x7f8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [ebp - 0x7f8]
push eax
lea ecx, [ebp - 0x7c0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [ebp - 0x7c0]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char__unsigned_int_const]
mov esi, eax
lea eax, [ebp - 0x7c0]
push eax
lea ecx, [ebp - 0x788]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebp - 0x774]
sub eax, esi
dec eax
push eax
inc esi
push esi
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x788]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x7c0]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x86c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x7f8]
push eax
lea ecx, [ebp - 0x788]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x788]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push edi
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0x40
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x54]
push str.Agent_ld
push eax
call esi
add esp, 0xc
test byte [ebp - 0x84c], 4
push edi
push edi
lea eax, [ebp - 0x54]
push edi
jne 0x404a96
push 4
jmp 0x404a97
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 0x81c], eax
jne 0x404aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], eax
call esi
add esp, 0xc
jmp 0x404986
cmp dword [ebp - 0x770], 0x10
mov eax, dword [ebp - 0x784]
jae 0x404adf
lea eax, [ebp - 0x784]
push 0x40ec24
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 0x820], esi
jne 0x404b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x7a8], 0x10
mov eax, dword [ebp - 0x7bc]
jae 0x404b14
lea eax, [ebp - 0x7bc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x404aca
push esi
call dword [sym.imp.MSVCR80.dll__fileno]
push eax
call dword [sym.imp.MSVCR80.dll__filelength]
pop ecx
pop ecx
push str.Accept:___r_n_r_n
lea ecx, [ebp - 0x7a4]
mov dword [ebp - 0x838], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.Pragma:_no_cache_r_n_r_n
lea ecx, [ebp - 0x7a4]
mov byte [ebp - 4], 8
call dword [0x40e1c4]
push str.Cache_Control:_no_cache_r_n_r_n
lea ecx, [ebp - 0x7a4]
call dword [0x40e1c4]
push str.Connection:Keep_Alive_r_n_r_n
lea ecx, [ebp - 0x7a4]
call dword [0x40e1c4]
push 0x103
lea eax, [ebp - 0x263]
push edi
push eax
mov byte [ebp - 0x264], 0
call sub.MSVCR80.dll_memset
push dword [ebp - 0x838]
lea eax, [ebp - 0x264]
push str.Range:_bytes_d__r_n_r_n
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x7a4]
call dword [0x40e1c4]
cmp byte [ebx + 0x317], 0
je 0x404bff
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
push dword [ebp - 0x81c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x7a4]
mov dword [ebp - 0x818], 1
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x405078
cmp dword [ebp - 0x78c], 0x10
mov esi, dword [ebp - 0x7a0]
mov eax, esi
jae 0x404c18
lea eax, [ebp - 0x7a0]
mov esi, eax
push edi
push 0x84000100
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x824]
push dword [ebp - 0x81c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x834], esi
jne 0x404ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x820]
mov dword [ebp - 0x830], eax
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
push dword [ebp - 0x81c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x754]
push eax
lea eax, [ebp - 0x830]
push eax
mov dword [ebp - 0x828], 0x3e7
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
test eax, eax
je 0x404cc1
push 0x40e808
lea eax, [ebp - 0x754]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404cc1
lea eax, [ebp - 0x754]
push eax
push dword [ebp - 0x824]
push 0x40eb7c
jmp 0x404cd2
push dword [ebp - 0x830]
push dword [ebp - 0x824]
push str.InternetOpenUrl
push dword [ebp - 0x82c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404be0
cmp byte [ebx + 0x317], 0
push 4
pop eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x848], eax
je 0x404d21
push dword [ebp - 0x820]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x81c]
call esi
jmp 0x404be0
push edi
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x844]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404cfe
mov eax, dword [ebp - 0x844]
cmp eax, 0x194
je 0x404cfe
cmp eax, 0x1a0
jne 0x404d93
push dword [ebp - 0x820]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x81c]
call esi
lea ecx, [ebp - 0x7a4]
mov dword [ebp - 0x818], edi
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x405068
cmp eax, 0xc8
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
je 0x404dd9
cmp eax, 0xce
je 0x404dd9
push dword [ebp - 0x820]
call edi
cmp dword [ebp - 0x770], 0x10
mov eax, dword [ebp - 0x784]
pop ecx
jae 0x404dc5
lea eax, [ebp - 0x784]
push 0x40ebd4
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x820], eax
push 0
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x83c]
push eax
push 0x20000005
push dword [ebp - 0x834]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp byte [ebx + 0x317], 0
je 0x404e17
push dword [ebp - 0x820]
call edi
pop ecx
push dword [ebp - 0x834]
jmp 0x404d0c
push 0x10000
lea eax, [ebp - 0x1086c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x828], eax
mov eax, dword [ebp - 0x838]
add dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], eax
jmp 0x404f57
lea eax, [ebp - 0x840]
push eax
push 0x10000
lea eax, [ebp - 0x1086c]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404f82
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp - 0x828]
cmp ecx, 0x32
jbe 0x404e96
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x840], 0
je 0x405018
push dword [ebp - 0x820]
lea eax, [ebp - 0x1086c]
push 1
push dword [ebp - 0x840]
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
mov eax, dword [ebp - 0x838]
add eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x83c]
add esp, 0x10
xor edx, edx
cmp ecx, 0x100000
mov dword [ebp - 0x838], eax
jbe 0x404ee9
shr eax, 0xa
shr ecx, 0xa
imul eax, eax, 0x64
div ecx
push eax
push 0
push 0x4e20
push dword [ebx]
mov dword [ebp - 0x824], eax
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x824]
push str.cur_progress__d_n
call dword [sym.imp.MSVCR80.dll_printf]
push 0x103
lea eax, [ebp - 0x15b]
push 0
push eax
mov byte [ebp - 0x15c], 0
call sub.MSVCR80.dll_memset
push dword [ebp - 0x824]
lea eax, [ebp - 0x15c]
push str.online_log_cur_progress__d_n
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [ebx + 0x317], 0
je 0x404e56
push dword [ebp - 0x820]
call edi
pop ecx
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x81c]
call esi
jmp 0x40500e
push dword [ebp - 0x820]
call edi
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x834]
mov dword [ebp - 0x830], eax
call esi
push dword [ebp - 0x81c]
call esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x754]
push eax
lea eax, [ebp - 0x830]
push eax
mov dword [ebp - 0x828], 0x3e7
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
test eax, eax
je 0x404ff4
push 0x40e808
lea eax, [ebp - 0x754]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404ff4
lea eax, [ebp - 0x754]
push eax
push 0x40ebd8
jmp 0x404fff
push dword [ebp - 0x830]
push 0x40ec00
push dword [ebp - 0x82c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x818], 1
push dword [ebp - 0x820]
call edi
pop ecx
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x81c]
call esi
lea ecx, [ebp - 0x7a4]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor edi, edi
jmp 0x405060
push 0x40eb2c
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x818], 1
cmp dword [ebp - 0x818], edi
jne 0x405078
push 0x64
push edi
push 0x4e20
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x7c0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x7f8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x788]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x7dc]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x818]
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.0040bfb6
leave
ret 0xc