Function at 0x495690
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7100
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.004bf8f0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1020], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1034], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1048], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x104c], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x1030], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x1038], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x102c], ecx
xor ecx, ecx
mov dword [ebp - 0x1040], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1028], ecx
mov dword [ebp - 0x1054], ecx
mov dword [ebp - 0x1084], ecx
mov dword [ebp - 0x1078], ecx
lea ecx, [ebp - 0x7b0]
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x108c], ecx
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0x1080], ecx
lea ecx, [ebp - 0x9b8]
mov dword [ebp - 0x1074], ecx
lea ecx, [ebp - 0xbc0]
mov dword [ebp - 0x106c], ecx
lea ecx, [ebp - 0xdc8]
mov dword [ebp - 0x1064], ecx
lea ecx, [ebp - 0xfd0]
mov dword [ebp - 0x105c], ecx
lea ecx, [ebp - 0x1090]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x1090], 0x3c
mov dword [ebp - 0x1070], 0x104
mov dword [ebp - 0x1060], 0x104
mov dword [ebp - 0x1088], 0x104
mov dword [ebp - 0x1068], 0x104
mov dword [ebp - 0x107c], 0x104
mov dword [ebp - 0x1058], 0x104
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x101c], eax
jne 0x49585d
push str.InternetCrackUrlW_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x101c]
call esi
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbe0
lea eax, [ebp - 0xfe8]
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbf0
mov edx, dword [ebp - 0xfd4]
cmp edx, 8
jb 0x496391
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495e1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495e1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x495885
push str.InternetAttemptConnect_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 1
jmp 0x4957f1
xor ebx, ebx
cmp dword [ebp - 0x1084], 4
sete bl
mov dword [ebp - 0x103c], ebx
call fcn.004d8640
mov byte [ebp - 0x1022], al
test al, al
je 0x4958db
test ebx, ebx
jne 0x4958db
push str.should_use_https_
push str.kupdate::KHttpUpload::OpenWeb
push 0xa5
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpupload.cpp
push ebx
call fcn.00412750
mov eax, dword [ebp - 0x1020]
add esp, 0x14
mov dword [eax + 8], 0xfffffffe
xor eax, eax
jmp 0x4963a2
push 0x80
lea eax, [ebp - 0x198]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0x40
lea eax, [ebp - 0x198]
push eax
push str.HKCUSoftwareKingsoftOffice6.0Commonupdateinfo_notmaptoip
call fcn.0044b880
mov ebx, dword [ebp - 0x1020]
add esp, 0x1c
mov ecx, dword fs:[0x2c]
mov dword [ebp - 0x1050], ecx
cmp dword [ebx + 4], 0
je 0x495ab5
test eax, eax
jne 0x495965
mov ecx, 0x4f1b88
lea eax, [ebp - 0x198]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x495958
test dx, dx
je 0x495954
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x495958
add eax, 4
add ecx, 4
test dx, dx
jne 0x495932
xor eax, eax
jmp 0x49595d
sbb eax, eax
or eax, 1
test eax, eax
je 0x495ab5
xor eax, eax
mov dword [ebp - 0xff0], 0
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
lea edx, [ecx + 2]
jmp 0x495990
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495990
sub ecx, edx
lea eax, [ebp - 0x3a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1000]
call fcn.004033b0
mov eax, dword [ebp - 0x1050]
mov ecx, dword [0x5421c0]
mov dword [ebp - 4], 2
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5410cc]
cmp eax, dword [ecx + 4]
jg 0x4963c0
lea eax, [ebp - 0x1000]
mov ecx, 0x5410c4
push eax
lea eax, [ebp - 0xfe8]
push eax
call fcn.00498070
mov edx, dword [ebp - 0xfec]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x495a38
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495a2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
push 0x208
lea eax, [ebp - 0x3a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0xfd4], 8
lea eax, [ebp - 0xfe8]
cmovae eax, dword [ebp - 0xfe8]
push eax
lea eax, [ebp - 0x3a0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, dword [ebp - 0xfd4]
add esp, 0x18
cmp edx, 8
jb 0x495ab5
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495aab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x495acd
add eax, 4
cmp word [eax], 0
je 0x495acd
push 0
push 0
push eax
push 3
jmp 0x495ad5
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
jne 0x495b0b
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0xfe8]
push str.InternetOpenW_fail.
mov dword [eax + 8], 0xfffffffd
call fcn.00404c50
mov dword [ebp - 4], 4
jmp 0x4957f1
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
lea ecx, [ebp - 0x1040]
push 0
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x1040], 0x7530
call esi
push 0
push 4
lea eax, [ebp - 0x1040]
push eax
push 5
push dword [edi]
call esi
push 0
push 4
lea eax, [ebp - 0x1040]
push eax
push 6
push dword [edi]
call esi
push dword [ebp - 0x1020]
mov eax, dword [ebp - 0x103c]
shl eax, 0x17
push eax
push 3
push dword [ebp - 0x106c]
push dword [ebp - 0x1074]
push dword [ebp - 0x1078]
push dword [ebp - 0x1080]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x1030]
mov dword [ecx], eax
test eax, eax
jne 0x495bb4
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0xfe8]
push str.InternetConnectW_fail.
mov dword [eax + 8], 0xfffffffc
call fcn.00404c50
mov dword [ebp - 4], 5
jmp 0x4957f1
mov edx, dword [ebp - 0x1064]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495be0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1000]
call fcn.004033b0
mov ebx, dword [ebp - 0x1048]
mov dword [ebp - 4], 6
test ebx, ebx
je 0x495c4c
cmp word [ebx], 0
je 0x495c4c
push 1
push 0x4fb1c0
lea ecx, [ebp - 0x1000]
call fcn.00403230
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495c30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1000]
call fcn.00403230
cmp dword [ebp - 0x103c], 0
mov ecx, 0x84280000
mov dword [ebp - 0x1044], 0x50d628
mov dword [ebp - 0x1040], 0
je 0x495d0e
mov eax, dword [ebp - 0x1080]
mov edi, eax
mov dword [ebp - 0x1048], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x495c83
sub edi, ecx
sar edi, 1
lea esi, [edi + 1]
push esi
call fcn.004bee3b
push edi
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push esi
push dword [ebp - 0x1048]
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x495ce4
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x1021], al
test ebx, ebx
je 0x495cf3
push ebx
call fcn.004bee44
mov al, byte [ebp - 0x1021]
add esp, 4
jmp 0x495cf3
test ebx, ebx
je 0x495cf1
push ebx
call fcn.004bee44
add esp, 4
xor al, al
movzx ecx, al
shl ecx, 0xc
add ecx, 0x84a80000
cmp byte [ebp - 0x1022], 0
jne 0x495d0e
or ecx, 0x43000
push dword [ebp - 0x1020]
cmp dword [ebp - 0xfec], 8
lea eax, [ebp - 0x1000]
push ecx
cmovae eax, dword [ebp - 0x1000]
lea ecx, [ebp - 0x1044]
push ecx
push 0
push 0
push eax
mov eax, dword [ebp - 0x1030]
push dword [ebp - 0x1034]
push dword [eax]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [ebp - 0x1038]
mov dword [esi], eax
test eax, eax
jne 0x495e2b
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0xfe8]
push str.HttpOpenRequestW_fail.
mov dword [eax + 8], 0xfffffffb
call fcn.00404c50
mov esi, dword [ebp - 0x101c]
mov byte [ebp - 4], 7
call esi
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbe0
lea eax, [ebp - 0xfe8]
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbf0
mov edx, dword [ebp - 0xfd4]
cmp edx, 8
jb 0x495de2
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0xfec]
cmp edx, 8
jb 0x496391
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495e1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
jmp 0x496391
mov edx, dword [ebp - 0xfec]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x495e74
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x495e68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
mov eax, dword [esi]
add esp, 8
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0xa0000000
push 0xd
push str.Accept:___r_n
push eax
call ebx
test eax, eax
jne 0x495ea9
push str.HttpAddRequestHeaders_add_Accept_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 8
jmp 0x4957f1
mov ecx, 0x14
lea edi, [ebp - 0x118]
mov esi, str.Content_Type:_application_octet_stream_r_n
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
movsw word es:[edi], word [esi]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495ec6
mov esi, dword [ebp - 0x1038]
lea eax, [ebp - 0x118]
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x495f0c
push str.HttpAddRequestHeaders_add_Hdrs_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 9
jmp 0x4957f1
mov edi, dword [ebp - 0x102c]
test edi, edi
je 0x495f5a
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x495f20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495f20
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x495f5a
push str.HttpAddRequestHeaders_add_Headers_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 0xa
jmp 0x4957f1
push 0x208
lea eax, [ebp - 0x5a8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 0x20]
lea eax, [ebp - 0x5a8]
push edi
push str.Content_Length:__d_r_n
push 0x104
push eax
call fcn.00412150
lea ecx, [ebp - 0x5a8]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495f93
sub ecx, edx
lea eax, [ebp - 0x5a8]
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x495fd3
push str.HttpAddRequestHeaders_add_ContentLength_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 0xb
jmp 0x4957f1
cmp dword [ebp - 0x103c], 0
je 0x496047
call fcn.004d83d0
test al, al
je 0x496047
push 0x13
xor eax, eax
mov dword [ebp - 0xff0], 0
push str.HttpsSecurityBypass
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
call fcn.004033b0
mov eax, dword [ebp - 0x1028]
or eax, 1
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004d8750
add esp, 4
test al, al
je 0x496047
mov bl, 1
jmp 0x496049
xor bl, bl
test byte [ebp - 0x1028], 1
mov dword [ebp - 4], 0xffffffff
je 0x496099
mov edx, dword [ebp - 0xfec]
cmp edx, 8
jb 0x496099
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49608f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
test bl, bl
mov ebx, dword [ebp - 0x1038]
je 0x4960e2
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x102c], 4
push eax
lea eax, [ebp - 0x1028]
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x1028], 0x380
lea eax, [ebp - 0x1028]
push 4
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push edi
push dword [ebp - 0x104c]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push 0
push 0
push dword [ebx]
call edi
test eax, eax
jne 0x496124
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0xfe8]
push str.HttpSendRequest_fail.
mov dword [eax + 8], 0xfffffffa
call fcn.00404c50
mov dword [ebp - 4], 0xd
jmp 0x4957f1
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1034], 0x80
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x102c], 0
push eax
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x49627a
mov esi, dword [ebp - 0x90]
cmp esi, 0x197
jne 0x49627c
mov ecx, dword [ebp - 0x1020]
push ebx
call fcn.00496a00
test eax, eax
je 0x49627c
push 0x33
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [ebp - 0x1030], 0
lea eax, [ebp - 0x1030]
push eax
push 0x32
lea eax, [ebp - 0xc4]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x4961e2
cmp dword [ebp - 0x1030], 0
jne 0x4961c1
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1020]
push dword [ebp - 0x104c]
push 0
push 0
mov dword [eax + 8], 0x197
push dword [ebx]
call edi
test eax, eax
jne 0x496220
push str.HttpSendRequestByProxy_fail.
lea ecx, [ebp - 0xfe8]
call fcn.00404c50
mov dword [ebp - 4], 0xe
jmp 0x4957f1
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1034], 0x80
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x102c], 0
push eax
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x90]
jmp 0x49627c
xor esi, esi
mov eax, dword [0x5421c0]
mov edi, dword [ebp - 0x1050]
mov edi, dword [edi + eax*4]
mov eax, dword [0x540fec]
cmp eax, dword [edi + 4]
jg 0x49642c
push esi
mov ecx, 0x540fc4
call fcn.0044fc20
mov eax, dword [ebp - 0x1020]
mov dword [eax + 8], esi
cmp esi, 0x12c
jb 0x49633c
push str.HttpSendRequest_StatusCode_300.
lea ecx, [ebp - 0x1018]
call fcn.00404c50
push 0x7fff
mov dword [ebp - 4], 0x10
call fcn.0042c430
mov ecx, eax
call fcn.0044fbe0
lea eax, [ebp - 0x1018]
push eax
call fcn.0042c430
mov ecx, eax
call fcn.0044fbf0
mov edx, dword [ebp - 0x1004]
cmp edx, 8
jb 0x49638b
mov ecx, dword [ebp - 0x1018]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x496330
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495857
push edx
push ecx
call fcn.004bee2d
add esp, 8
jmp 0x49638b
cmp dword [ebp - 0x103c], 0
je 0x496381
mov eax, dword [0x540fa4]
cmp eax, dword [edi + 4]
jg 0x49647a
mov ecx, 0x5405e8
call fcn.00446be0
test al, al
je 0x496381
mov ecx, dword [ebp - 0x1020]
push ebx
call fcn.00496cb0
test al, al
jne 0x496381
mov eax, dword [ebp - 0x1020]
mov dword [eax + 8], 0xfffffff4
mov dword [ebp - 0x1054], 1
mov esi, dword [ebp - 0x101c]
call esi
mov ecx, dword [ebp - 0x1020]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1054]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 0x2c
push 0x5410cc
call fcn.004bf206
add esp, 4
cmp dword [0x5410cc], 0xffffffff
jne 0x4959d9
push 0x40
mov byte [ebp - 4], 3
mov dword [0x5410c4], 0
mov dword [0x5410c8], 0
call fcn.004bedfd
push 0x4ec010
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5410c4], eax
call fcn.004bf0be
push 0x5410cc
mov byte [ebp - 4], 2
call fcn.004bf1bc
add esp, 0xc
jmp 0x4959d9
push 0x540fec
call fcn.004bf206
add esp, 4
cmp dword [0x540fec], 0xffffffff
jne 0x49629b
mov ecx, 0x540fc4
mov dword [ebp - 4], 0xf
call fcn.0044fa90
push 0x4ebe50
call fcn.004bf0be
push 0x540fec
mov dword [ebp - 4], 0xffffffff
call fcn.004bf1bc
add esp, 8
jmp 0x49629b
push 0x540fa4
call fcn.004bf206
add esp, 4
cmp dword [0x540fa4], 0xffffffff
jne 0x496356
mov ecx, 0x5405e8
mov dword [ebp - 4], 0x11
call fcn.0043dfc0
push 0x4ebe10
call fcn.004bf0be
push 0x540fa4
mov dword [ebp - 4], 0xffffffff
call fcn.004bf1bc
add esp, 8
jmp 0x496356