Function at 0x4051e0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Print debug messages
Read http header
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x958
mov eax, dword [0x5365f0]
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 eax, dword [ebp + 0x40]
mov dword [ebp - 0x93c], eax
mov dword [ebp - 4], 2
push str.Start_of_WebAPIHelper::DownloadAERnsConfigFile__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x7fe
xor ebx, ebx
lea edx, [ebp - 0x80e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x810], cx
call fcn.004da450
add esp, 0xc
xor eax, eax
push ebx
lea ecx, [ebp + 8]
mov word [ebp - 0x82c], ax
push ecx
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x938], ebx
mov dword [ebp - 0x95c], ebx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
call fcn.004022e0
mov byte [ebp - 4], 3
xor edx, edx
mov byte [ebp - 0x92d], bl
mov dword [ebp - 0x928], ebx
mov dword [ebp - 0x924], ebx
mov dword [ebp - 0x920], 1
mov dword [ebp - 0x908], edi
mov dword [ebp - 0x90c], ebx
mov word [ebp - 0x91c], dx
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x8ec], edi
mov dword [ebp - 0x8f0], ebx
mov word [ebp - 0x900], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x8e4], ebx
mov dword [ebp - 0x8e0], ebx
mov dword [ebp - 0x8dc], ebx
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0x8c0], edi
mov dword [ebp - 0x8c4], ebx
mov word [ebp - 0x8d4], cx
lea esi, [ebx + 8]
mov byte [ebp - 4], 8
cmp byte [ebp + 0x64], bl
je 0x40532b
lea ecx, [ebp - 0x92c]
call fcn.004039d0
lea ecx, [ebp - 0x8e4]
lea edx, [ebp - 0x82c]
call fcn.00403ea0
test al, al
je 0x40533b
lea esi, [ebp - 0x92c]
call fcn.004035d0
mov esi, 8
mov edx, dword [ebp - 0x924]
mov eax, dword [ebp - 0x928]
push ebx
push ebx
push edx
push eax
push str.AERNSExt
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x948], eax
cmp eax, ebx
jne 0x40542e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen___failed._Error:__d
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x92c]
push edx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x4053b6
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x4053e0
mov edx, dword [ebp + 8]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x405400
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x405424
mov eax, dword [ebp + 0x44]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
lea eax, [ecx + 1]
jmp 0x406a8f
cmp dword [ebp + 0x34], ebx
je 0x40550c
mov ecx, dword [ebp - 0x81c]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x40544e
push str.invalid_string_position
call fcn.004d47e5
mov ecx, dword [ebp - 0x82c]
cmp dword [ebp - 0x818], esi
jae 0x405462
lea ecx, [ebp - 0x82c]
cmp word [ecx + eax*2], 0x2f
jne 0x4054c7
push eax
lea edx, [ebp - 0x8b8]
push edx
xor ecx, ecx
lea edx, [ebp - 0x82c]
call fcn.00404010
mov byte [ebp - 4], 9
mov edi, eax
lea esi, [ebp - 0x82c]
call fcn.00402140
mov byte [ebp - 4], 8
cmp dword [ebp - 0x8a4], 8
jb 0x4054ab
mov eax, dword [ebp - 0x8b8]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8a4], 7
mov dword [ebp - 0x8a8], ebx
mov word [ebp - 0x8b8], cx
lea esi, [ecx + 8]
cmp dword [ebp + 0x34], ebx
ja 0x4054d6
push str.invalid_string_position
call fcn.004d47e5
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x4054e1
lea eax, [ebp + 0x24]
cmp word [eax], 0x2f
je 0x4054f9
push 1
mov eax, 0x504fc8
lea ecx, [ebp - 0x82c]
call fcn.004021b0
push ebx
lea edx, [ebp + 0x24]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x82c]
call fcn.004026d0
mov eax, dword [ebp - 0x948]
push 0x1d4c0
push 0x7530
push 0x7530
push 0x7530
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov byte [ebp - 4], 0xa
xor edx, edx
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x864]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x954], esp
push ebx
lea eax, [ebp - 0x82c]
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov dword [ebp - 0x944], ebx
lea edi, [ebp - 0x944]
lea esi, [ebp - 0x92d]
mov word [ecx], dx
call fcn.004022e0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
mov edx, esi
lea ecx, [ebp - 0x848]
call fcn.00404c40
mov eax, dword [ebp - 0x944]
add esp, 0x20
cmp ax, bx
jne 0x4055cc
xor eax, eax
jmp 0x4055cf
movzx eax, ax
mov ecx, dword [ebp - 0x864]
mov edi, 8
cmp dword [ebp - 0x850], edi
jae 0x4055e8
lea ecx, [ebp - 0x864]
mov esi, dword [ebp - 0x948]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x950], eax
cmp eax, ebx
jne 0x405743
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpConnect___failed._Error:__d
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], edi
jb 0x40564f
mov edx, dword [ebp - 0x848]
push edx
call fcn.004d5559
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], edi
jb 0x405684
mov ecx, dword [ebp - 0x864]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], dx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x92c]
push eax
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], edi
jb 0x4056c4
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], dx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], edi
jb 0x4056ee
mov eax, dword [ebp + 8]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], edi
jb 0x40570e
mov edx, dword [ebp + 0x24]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], edi
jb 0x405732
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x58], esi
mov word [ebp + 0x44], dx
lea eax, [edx + 1]
jmp 0x406a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x848]
cmp dword [ebp - 0x834], edi
jae 0x40575d
lea eax, [ebp - 0x848]
movzx ecx, byte [ebp - 0x92d]
mov edx, dword [ebp - 0x950]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push ebx
push ebx
push ebx
push eax
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x944], esi
cmp esi, ebx
jne 0x4058e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpenRequest___failed._Error:__d
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x950]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x948]
push edx
call esi
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], edi
jb 0x4057eb
mov eax, dword [ebp - 0x848]
push eax
call fcn.004d5559
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], edi
jb 0x405820
mov edx, dword [ebp - 0x864]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x92c]
push ecx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], edi
jb 0x405860
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], edi
jb 0x40588a
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], edi
jb 0x4058aa
mov eax, dword [ebp + 0x24]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], edi
jb 0x4058ce
mov edx, dword [ebp + 0x44]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp + 0x44], ax
mov dword [ebp + 0x58], esi
mov eax, 1
jmp 0x406a96
push 4
lea ecx, [ebp - 0x960]
push ecx
push 0x3f
push esi
mov dword [ebp - 0x960], 2
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, str.Content_Type:application_x_www_form_urlencoded__charsetUTF_8_
lea ecx, [ebp - 0x880]
call fcn.00401c60
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x934], ebx
mov byte [ebp - 0x92d], 1
mov edi, edi
cmp dword [ebp - 0x928], 3
jne 0x40597d
cmp dword [ebp - 0x90c], ebx
je 0x40597d
mov ecx, dword [ebp - 0x900]
mov edi, 8
cmp dword [ebp - 0x8ec], edi
jae 0x40594a
lea ecx, [ebp - 0x900]
mov eax, dword [ebp - 0x91c]
cmp dword [ebp - 0x908], edi
jae 0x40595e
lea eax, [ebp - 0x91c]
mov edx, dword [ebp - 0x920]
push ebx
push ecx
push eax
push edx
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x405982
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405982
mov edi, 8
mov eax, dword [ebp - 0x880]
cmp dword [ebp - 0x86c], edi
jae 0x405996
lea eax, [ebp - 0x880]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x4059ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f8f
jne 0x405deb
cmp byte [ebp - 0x92d], bl
je 0x405deb
push 4
lea eax, [ebp - 0x940]
push eax
push 0x1f
push esi
mov byte [ebp - 0x92d], bl
mov dword [ebp - 0x940], 0x100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x405920
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov dword [ebp - 0x94c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x405a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x405920
push eax
push str.WinHttpReceiveResponse___failed._Error:__d
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 7
jmp 0x4067f3
push ebx
lea ecx, [ebp - 0x964]
push ecx
lea edx, [ebp - 0x958]
push edx
push ebx
push 0x20000013
push esi
mov dword [ebp - 0x958], ebx
mov dword [ebp - 0x964], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x405a9f
mov eax, dword [ebp - 0x958]
cmp dword [ebp - 0x934], eax
je 0x405a9f
mov dword [ebp - 0x934], eax
cmp eax, 0x191
je 0x405920
cmp eax, 0x197
je 0x405920
push ebx
lea edx, [ebp - 0x938]
push edx
push ebx
push ebx
push 0x16
push esi
mov dword [ebp - 0x934], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405b03
mov eax, dword [ebp - 0x938]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
add esp, 4
push ebx
lea ecx, [ebp - 0x938]
push ecx
push eax
push ebx
push 0x16
push esi
mov dword [ebp - 0x934], eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x94c], eax
mov edi, 7
cmp dword [ebp - 0x94c], ebx
je 0x40606e
xor edx, edx
mov dword [ebp - 0x888], edi
mov dword [ebp - 0x88c], ebx
mov word [ebp - 0x89c], dx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x934]
push eax
lea ecx, [ebp - 0x89c]
call fcn.00406ac0
movzx eax, al
add esp, 4
cmp eax, ebx
je 0x405f8f
push str.Got_redirected_URL.
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 4
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 5
mov eax, str._ver
lea ecx, [ebp - 0x89c]
call fcn.004021b0
cmp dword [ebp + 0x54], ebx
jne 0x405b93
push 0xb
mov eax, str.v.2017.0715
lea esi, [ebp + 0x44]
call fcn.004027c0
push ebx
lea edx, [ebp + 0x44]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x89c]
call fcn.004026d0
mov eax, dword [ebp - 0x934]
cmp eax, ebx
je 0x405bb9
push eax
call fcn.004d5559
add esp, 4
mov eax, dword [ebp - 0x944]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x950]
push ecx
call esi
mov edx, dword [ebp - 0x948]
push edx
call esi
mov eax, dword [ebp + 0x60]
cmp eax, 6
jge 0x405e1c
mov ecx, dword [ebp + 0x64]
push ecx
inc eax
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x954], esp
push ebx
lea eax, [ebp + 0x44]
mov edi, 7
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004022e0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x93c]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x940], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x517384
mov word [esi], dx
call fcn.004027c0
mov byte [ebp - 4], 0x10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x944], esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp - 0x89c]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.004022e0
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xe
call fcn.004051e0
add esp, 0x60
mov dword [ebp - 0x940], eax
mov byte [ebp - 4], 0xd
mov esi, 8
cmp dword [ebp - 0x888], esi
jb 0x405ca0
mov eax, dword [ebp - 0x89c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x888], edi
mov dword [ebp - 0x88c], ebx
mov word [ebp - 0x89c], cx
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x86c], esi
jb 0x405cd0
mov edx, dword [ebp - 0x880]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x405d00
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x405d30
mov eax, dword [ebp - 0x864]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x92c]
push edx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x405d70
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x405d9a
mov edx, dword [ebp + 8]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x405dba
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x405dde
mov eax, dword [ebp + 0x44]
push eax
call fcn.004d5559
add esp, 4
mov eax, dword [ebp - 0x940]
xor ecx, ecx
jmp 0x406a8f
push eax
push str.WinHttpSendRequest___failed._Error:__d
lea edx, [ebp - 0x810]
mov dword [ebp - 0x94c], ebx
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 7
jmp 0x4067f3
mov byte [ebp - 4], 0xd
mov edi, 8
cmp dword [ebp - 0x888], edi
jb 0x405e3c
mov edx, dword [ebp - 0x89c]
push edx
call fcn.004d5559
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x888], esi
mov dword [ebp - 0x88c], ebx
mov word [ebp - 0x89c], ax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x86c], edi
jb 0x405e71
mov ecx, dword [ebp - 0x880]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], edi
jb 0x405ea1
mov eax, dword [ebp - 0x848]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], edi
jb 0x405ed1
mov edx, dword [ebp - 0x864]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x92c]
push ecx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], edi
jb 0x405f11
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], edi
jb 0x405f3b
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], edi
jb 0x405f5b
mov eax, dword [ebp + 0x24]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], edi
jb 0x405f7f
mov edx, dword [ebp + 0x44]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp + 0x44], ax
mov dword [ebp + 0x58], esi
mov eax, esi
jmp 0x406a96
push str.There_is_no_redirected_URL.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
mov dword [ebp - 0x8a4], edi
mov dword [ebp - 0x8a8], ebx
mov word [ebp - 0x8b8], cx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x934]
push edx
lea ecx, [ebp - 0x8b8]
call fcn.00404f00
add esp, 4
test al, al
je 0x40600c
mov edi, dword [ebp - 0x93c]
mov ebx, 1
call fcn.00406bd0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x406005
inc ecx
or eax, 0xffffffff
mov esi, edi
call fcn.004028b0
push 0
lea eax, [ebp - 0x8b8]
push eax
or eax, 0xffffffff
call fcn.004026d0
mov esi, dword [ebp - 0x944]
mov edi, 7
xor ebx, ebx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x8a4], 8
jb 0x406028
mov ecx, dword [ebp - 0x8b8]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x8a4], edi
mov dword [ebp - 0x8a8], ebx
mov word [ebp - 0x8b8], dx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x888], 8
jb 0x406059
mov eax, dword [ebp - 0x89c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x888], edi
mov dword [ebp - 0x88c], ebx
mov word [ebp - 0x89c], cx
cmp dword [ebp - 0x934], ebx
je 0x406085
mov edx, dword [ebp - 0x934]
push edx
call fcn.004d5559
add esp, 4
cmp dword [ebp - 0x94c], ebx
je 0x4067f3
mov eax, dword [ebp - 0x93c]
cmp dword [eax + 0x14], 8
jb 0x40609f
mov eax, dword [eax]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x934], eax
cmp eax, ebx
jne 0x406228
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WebApiHelper::CreateFile_failed._Error:__d
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x40610a
mov ecx, dword [ebp - 0x880]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x40613a
mov eax, dword [ebp - 0x848]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x40616a
mov edx, dword [ebp - 0x864]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x92c]
push ecx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x4061aa
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x4061d4
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x4061f4
mov eax, dword [ebp + 0x24]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x406218
mov edx, dword [ebp + 0x44]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp + 0x44], ax
mov eax, 1
jmp 0x406a93
mov ecx, dword [ebp - 0x934]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40639d
push str.WebApiHelper::SetFilePointer___failed.
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 4
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x406281
mov eax, dword [ebp - 0x880]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], cx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x4062b1
mov edx, dword [ebp - 0x848]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x4062e1
mov ecx, dword [ebp - 0x864]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], dx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x92c]
push eax
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x406321
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], dx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x40634b
mov eax, dword [ebp + 8]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x40636b
mov edx, dword [ebp + 0x24]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x40638f
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov word [ebp + 0x44], dx
lea eax, [edx + 1]
jmp 0x406a93
mov eax, dword [ebp - 0x934]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40650e
push str.WebApiHelper::SetEndOfFile___failed.
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 4
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x4063f2
mov edx, dword [ebp - 0x880]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x406422
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x406452
mov eax, dword [ebp - 0x864]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x92c]
push edx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x406492
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x4064bc
mov edx, dword [ebp + 8]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x4064dc
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x405424
mov eax, dword [ebp + 0x44]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
lea eax, [ecx + 1]
jmp 0x406a8f
mov ecx, dword [ebp - 0x934]
push ebx
lea edx, [ebp - 0x940]
push edx
push 2
lea eax, [ebp - 0x954]
push eax
push ecx
mov dword [ebp - 0x954], 0xfeff
mov dword [ebp - 0x940], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4066a4
push str.WebApiHelper::WriteFile_wBOM__failed.
lea edx, [ebp - 0x810]
call fcn.00401000
add esp, 4
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x406584
mov eax, dword [ebp - 0x880]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], cx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x4065b4
mov edx, dword [ebp - 0x848]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x4065e4
mov ecx, dword [ebp - 0x864]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], dx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x92c]
push eax
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x406624
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], dx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x40664e
mov eax, dword [ebp + 8]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x40666e
mov edx, dword [ebp + 0x24]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x40638f
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov word [ebp + 0x44], dx
lea eax, [edx + 1]
jmp 0x406a93
lea eax, [ebp - 0x938]
push eax
push esi
mov dword [ebp - 0x938], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x938]
inc ecx
push ecx
call fcn.004d4853
add esp, 4
mov dword [ebp - 0x93c], eax
cmp eax, ebx
je 0x4067e0
mov edx, dword [ebp - 0x938]
inc edx
push edx
push ebx
push eax
call fcn.004da450
mov edx, dword [ebp - 0x938]
mov eax, dword [ebp - 0x93c]
add esp, 0xc
lea ecx, [ebp - 0x95c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4067c3
cmp dword [ebp - 0x95c], ebx
je 0x4067c3
mov ecx, dword [ebp - 0x93c]
push ecx
lea ecx, [ebp - 0x89c]
call fcn.00403fa0
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x8b8]
push edx
lea ecx, [ebp - 0x89c]
call fcn.00404b80
add esp, 4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x89c]
call fcn.00403fe0
mov esi, dword [ebp - 0x8a4]
mov edi, dword [ebp - 0x8b8]
mov eax, edi
cmp esi, 8
jae 0x406771
lea eax, [ebp - 0x8b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406774
sub eax, edx
sar eax, 1
add eax, eax
mov ecx, edi
cmp esi, 8
jae 0x406792
lea ecx, [ebp - 0x8b8]
push ebx
lea edx, [ebp - 0x940]
push edx
push eax
mov eax, dword [ebp - 0x934]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x8b8]
call fcn.00401ca0
mov esi, dword [ebp - 0x944]
mov edi, 7
mov ecx, dword [ebp - 0x93c]
push ecx
call fcn.004d632b
add esp, 4
cmp dword [ebp - 0x938], ebx
ja 0x4066a4
jmp 0x4067e6
mov dword [ebp - 0x938], ebx
mov edx, dword [ebp - 0x934]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [ebp - 0x950]
push eax
call esi
mov ecx, dword [ebp - 0x948]
push ecx
call esi
cmp dword [ebp - 0x94c], ebx
jne 0x40695d
push str.WebApiHelper::DownloadAERnsConfigFile_failed._Returning_InvalidReceiveResponse
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x406845
mov edx, dword [ebp - 0x880]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x406875
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x4068a5
mov eax, dword [ebp - 0x864]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x92c]
push edx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x4068e5
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x40690f
mov edx, dword [ebp + 8]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x40692f
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x406953
mov eax, dword [ebp + 0x44]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
lea eax, [ecx + 2]
jmp 0x406a8f
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x86c], esi
jb 0x40697d
mov edx, dword [ebp - 0x880]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x870], ebx
mov word [ebp - 0x880], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x834], esi
jb 0x4069ad
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], esi
jb 0x4069dd
mov eax, dword [ebp - 0x864]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x92c]
push edx
call fcn.00404e20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x818], esi
jb 0x406a1d
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], esi
jb 0x406a47
mov edx, dword [ebp + 8]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
mov byte [ebp - 4], bl
cmp dword [ebp + 0x38], esi
jb 0x406a67
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x58], esi
jb 0x406a8b
mov eax, dword [ebp + 0x44]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
xor eax, eax
mov word [ebp + 0x44], cx
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x54], ebx
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.004d5564
mov esp, ebp
pop ebp
ret