Function at 0x402f0a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x834
mov eax, 0x41937c
call fcn.0040be93
push str.Captcha_process_begin
mov esi, ecx
call fcn.00404e04
xor ebx, ebx
pop ecx
mov byte [ebp - 0x805], bl
mov byte [ebp - 0x806], bl
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
push ebx
push ebx
lea eax, [ebp - 0x810]
push eax
push str.auth_key
push dword [esi + 0x40c]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00407465
push ebx
push ebx
lea eax, [ebp - 0x824]
push eax
push str.auth_number
push dword [esi + 0x40c]
mov ecx, esi
call fcn.00407465
cmp dword [ebp - 0x824], ebx
jne 0x402fb2
push ebx
push ebx
lea eax, [ebp - 0x824]
push eax
push str.form_auth_image_answer_
push dword [esi + 0x40c]
mov ecx, esi
call fcn.00407cec
cmp dword [ebp - 0x810], ebx
jne 0x40301b
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x403479
mov dword [ebp - 0x818], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x818]
push edx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0x3c]
lea eax, [ebp - 0x810]
push eax
push 4
push dword [ebp - 0x818]
mov ecx, esi
push dword [esi + 0x40c]
call fcn.0040733a
mov eax, dword [ebp - 0x818]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x40300f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x810], ebx
je 0x403479
cmp dword [ebp - 0x824], ebx
je 0x403479
mov dword [ebp - 0x838], ebx
mov eax, dword [ebp - 0x810]
mov eax, dword [eax]
lea ecx, [ebp - 0x838]
push ecx
push dword [ebp - 0x810]
mov byte [ebp - 4], 4
call dword [eax + 0x3c]
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x838]
mov ecx, esi
push dword [esi + 0x40c]
call fcn.0040733a
cmp dword [ebp - 0x828], ebx
je 0x403298
push str.scan_captcha_img
call fcn.00404e04
pop ecx
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
lea edx, [ebp - 0x83c]
push edx
push eax
mov byte [ebp - 4], 5
call dword [ecx + 0xe8]
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x81c], ebx
mov edi, 0x41a584
cmp eax, ebx
je 0x4030bd
mov ecx, dword [eax]
lea edx, [ebp - 0x81c]
push edx
push edi
push eax
call dword [ecx]
cmp dword [ebp - 0x81c], ebx
jne 0x4030f0
cmp dword [ebp - 0x810], ebx
je 0x403272
push edi
push dword [ebp - 0x810]
lea eax, [ebp - 0x81c]
push eax
call fcn.00402b02
cmp dword [ebp - 0x81c], ebx
je 0x403272
mov dword [ebp - 0x818], ebx
mov eax, dword [ebp - 0x81c]
mov eax, dword [eax]
lea ecx, [ebp - 0x818]
push ecx
push dword [ebp - 0x81c]
mov byte [ebp - 4], 7
call dword [eax + 0x70]
push dword [ebp - 0x818]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x403266
mov edi, 0x1000
push edi
call fcn.0040c5c0
mov dword [esp], str.GetUrlCacheEntryInfoA
mov dword [eax], edi
push str.wininet
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x840], edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x818]
mov dword [ebp - 0x814], eax
cmp eax, ebx
je 0x40317d
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x403181
xor eax, eax
jmp 0x40319c
lea edi, [eax + eax]
mov eax, edi
call fcn.0040c970
mov eax, esp
push 3
push edi
push dword [ebp - 0x814]
push eax
call fcn.00402ab2
mov edi, dword [ebp - 0x830]
lea ecx, [ebp - 0x840]
push ecx
push edi
push eax
call dword [ebp - 0x834]
test eax, eax
setne byte [ebp - 0x81d]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp - 0x81d], bl
je 0x403266
push dword [edi + 8]
call fcn.00409860
pop ecx
test eax, eax
je 0x403266
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x814], eax
cmp eax, 0xffffffff
je 0x403266
lea ecx, [ebp - 0x834]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x40325a
lea eax, [edi + 1]
push eax
call fcn.0040c5c0
push edi
push ebx
push eax
mov dword [ebp - 0x82c], eax
call fcn.0040b900
add esp, 0x10
push ebx
lea eax, [ebp - 0x834]
push eax
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40325a
mov byte [ebp - 0x806], 1
mov dword [ebp - 0x80c], edi
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x818]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x81c]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x403286
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x83c]
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4032a3
push str.Error:_cant_captcha_elem
call fcn.00404e04
pop ecx
cmp byte [ebp - 0x806], bl
je 0x403458
cmp dword [ebp - 0x80c], 0x64
jle 0x403458
push dword [esi + 0x408]
lea eax, [esi + 4]
push dword [esi + 0x404]
lea ecx, [ebp - 0x804]
push eax
call fcn.004029be
push 0x3e7
lea eax, [ebp - 0x3f8]
push ebx
push eax
call fcn.0040b900
add esp, 0xc
push 0x41a6b8
push str.fcreg
push 0x41a6ac
lea eax, [ebp - 0x3f8]
push eax
push dword [ebp - 0x80c]
lea ecx, [ebp - 0x804]
push dword [ebp - 0x82c]
call fcn.00401e90
cmp eax, 1
jne 0x403451
mov edi, 0x41a6a8
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.0040c180
pop ecx
pop ecx
jmp 0x403352
lea ecx, [eax + 1]
push ecx
push eax
call fcn.0040bf40
lea eax, [ebp - 0x3f8]
push edi
push eax
call fcn.0040c180
add esp, 0x10
cmp eax, ebx
jne 0x403338
lea eax, [ebp - 0x3f8]
push eax
call fcn.00409860
pop ecx
cmp eax, dword [ebp + 8]
jne 0x40344a
mov dword [ebp - 0x80c], ebx
push ebx
push ebx
lea eax, [ebp - 0x80c]
push eax
push str.auth_number
push dword [esi + 0x40c]
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00407465
cmp dword [ebp - 0x80c], ebx
jne 0x4033b4
push ebx
push ebx
lea eax, [ebp - 0x80c]
push eax
push str.form_auth_image_answer_
push dword [esi + 0x40c]
mov ecx, esi
call fcn.00407cec
mov eax, dword [ebp - 0x80c]
mov dword [ebp - 0x814], ebx
cmp eax, ebx
je 0x4033d5
mov ecx, dword [eax]
lea edx, [ebp - 0x814]
push edx
push 0x41a5b8
push eax
call dword [ecx]
mov esi, dword [ebp - 0x814]
mov byte [ebp - 4], 9
cmp esi, ebx
je 0x403420
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x830]
call fcn.00402cb8
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push esi
mov byte [ebp - 4], 0xa
call dword [ecx + 0x24]
push dword [ebp - 0x830]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov byte [ebp - 0x805], 1
mov eax, dword [ebp - 0x814]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x403434
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x80c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x403463
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403463
push str.catpcha_len_incorrect
jmp 0x40345d
push str.Captcha_solve_error
jmp 0x40345d
push str.ERROR:_no_image
call fcn.00404e04
pop ecx
mov eax, dword [ebp - 0x838]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x403484
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403484
push str.Error:_cant_get_captcha_elem
call fcn.00404e04
pop ecx
cmp dword [ebp - 0x82c], ebx
je 0x403498
push dword [ebp - 0x82c]
call fcn.0040c654
pop ecx
push str.Captcha_process_end
call fcn.00404e04
mov eax, dword [ebp - 0x824]
pop ecx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4034b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x828]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4034ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x810]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4034de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 0x805]
lea esp, [ebp - 0x850]
call fcn.0040bf16
ret 4