Function at 0x402350
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f250
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x4023a4
xor ecx, ecx
jmp 0x4023bf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00401830
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040bc90
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x4023f0
push dword [ebp - 0x58]
call fcn.0040ed3b
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [edi + 0x10], eax
jb 0x402411
mov eax, dword [edi]
jmp 0x402413
mov eax, edi
xor esi, esi
xor ecx, ecx
push esi
push 0x80
push 3
push esi
push 1
push bind
mov word [eax], cx
mov eax, dword [ebp - 0x20]
push ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40244f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
mov dword [ebp - 0x38], eax
call fcn.0040ebc6
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40246d
push 0xffffffffffffffff
call fcn.0040f750
push dword [ebp - 0x38]
push 0
push ebx
call fcn.00411600
add esp, 0xc
test esi, esi
je 0x4025b2
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x4025b2
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3c]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4025b2
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
mov eax, dword [ebp - 0x40]
push ecx
add eax, ebx
push eax
call fcn.0040f3e4
add esp, 0x10
test eax, eax
je 0x40252f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.0040b400
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x402518
mov eax, dword [eax]
push eax
push str._rY6R
push 3
push str.CAgIdCardAdapter::GetDllMd5
push 0x176
jmp 0x4025e0
push dword [ebp - 0x38]
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.0040c200
mov esi, eax
add esp, 4
cmp edi, esi
je 0x4025ed
cmp dword [edi + 0x14], 8
jb 0x402559
push dword [edi]
call fcn.0040ed3b
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x402587
mov eax, dword [esi + 0x10]
inc eax
je 0x402591
add eax, eax
push eax
push esi
push edi
call fcn.0040eda0
add esp, 0xc
jmp 0x402591
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x4025ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.0040b400
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4025ce
mov eax, dword [eax]
push eax
push 0x425cac
push 3
push str.CAgIdCardAdapter::GetDllMd5
push 0x16f
push str.d:work_
call fcn.0040bc30
add esp, 0x18
cmp dword [ebp - 0x5c], 8
jb 0x4025fe
push dword [ebp - 0x70]
call fcn.0040ed3b
add esp, 4
push ebx
call fcn.0040f764
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x40260f
mov edi, dword [edi]
cmp dword [ebp - 0x1c], 0x10
jb 0x402620
push dword [ebp - 0x30]
call fcn.0040ed3b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret 0xc