Function at 0x5790b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1f0d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x606040]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
push 1
call fcn.0040c9e0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax + 0x20]
push 0x28
push dword [ebx + 0x20]
call edi
xor eax, eax
push 1
push 0x46c
push 0x46c
push dword [ebx + 0x20]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x579157
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [ebx + 0x20]
call edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x220]
lea esi, [ebx + 0x220]
sub eax, 0x10
push eax
call fcn.004039f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x78], 0
mov esi, dword [ebx + 0x23c]
test esi, esi
je 0x5791c9
mov ecx, esi
call fcn.00402b50
push esi
call fcn.0040a426
add esp, 4
mov dword [ebx + 0x23c], 0
push 0x2c
call fcn.0040a3f9
add esp, 4
test eax, eax
je 0x5791e0
mov ecx, eax
call fcn.00404970
jmp 0x5791e2
xor eax, eax
mov dword [ebx + 0x23c], eax
test eax, eax
je 0x579938
push 0x3f2
mov ecx, ebx
call fcn.0040c9e0
mov esi, eax
mov eax, 0x10e5
mov dword [esp + 0x20], eax
test esi, esi
je 0x57922f
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x57922f
push 0
push 0
push 0x147
push ecx
call edi
push 0
push eax
push 0x150
push dword [esi + 0x20]
call edi
mov dword [esp + 0x20], eax
mov ecx, dword [ebx + 0x23c]
mov dword [ecx + 0x14], eax
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x579254
push 0x80004005
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
push 0x3ef
mov ecx, ebx
mov byte [esp + 0x7c], 1
call fcn.0040c9e0
test eax, eax
je 0x5792b2
cmp dword [eax + 0x20], 0
je 0x5792b2
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.0040efaa
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004039f0
add esp, 4
lea ecx, [esp + 0x3c]
add eax, 0x10
mov dword [esi], eax
call fcn.004075d0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
push 0x3f4
mov ecx, ebx
call fcn.0040c9e0
mov esi, 0xff1
test eax, eax
je 0x5792ef
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5792ef
push 0
push 0
push 0xf0
push eax
call edi
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 0xff0
movzx esi, ax
mov eax, esi
mov dword [esp + 0x3c], eax
push esi
lea edx, [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.0058eec0
add esp, 4
mov byte [esp + 0x78], 2
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x579321
push 0x80004005
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 3
push eax
lea ecx, [ebx + 0x1a8]
call fcn.0040efaa
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
movzx edi, si
mov esi, esp
push eax
call fcn.004039f0
add esp, 4
lea ecx, [esp + 0x1c]
add eax, 0x10
mov edx, edi
mov dword [esi], eax
call fcn.0058eb80
add esp, 4
mov byte [esp + 0x78], 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx - 0xc]
add ecx, 9
add ecx, dword [eax - 0xc]
cmp ecx, 0x104
jle 0x5793a1
push 0
mov edx, 0x104200
mov ecx, ebx
call fcn.00574b30
add esp, 4
jmp 0x5798ab
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x5793c1
push eax
mov edx, 0x104101
mov ecx, ebx
call fcn.00574b30
add esp, 4
jmp 0x5798ab
mov ecx, dword [esp + 0x1c]
call fcn.00590260
test al, al
jne 0x5793e4
push 0
mov edx, 0x104401
mov ecx, ebx
call fcn.00574b30
add esp, 4
jmp 0x5798ab
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0058f010
movzx eax, ax
mov ecx, 0x2710
cmp ax, cx
jl 0x57942d
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x579418
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, dword [esp + 0x14]
push eax
mov edx, 0x104300
mov ecx, ebx
call fcn.00574b30
add esp, 4
jmp 0x5798ab
mov ecx, dword [ebx + 0x23c]
inc eax
movzx edi, ax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 8]
call fcn.00403360
lea ecx, [esp + 0x28]
call fcn.00401fb0
mov byte [esp + 0x78], 5
mov esi, dword [esp + 0x20]
push str..pdf
cmp esi, 0x10e6
jne 0x579481
movsx eax, di
push eax
push 4
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push str._s__0d_s
push eax
call fcn.00404210
add esp, 0x18
jmp 0x5794b0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00405bd0
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 6
call fcn.00403360
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 5
call fcn.00401fe0
mov ecx, dword [ebx + 0x23c]
lea eax, [esp + 0x28]
push eax
lea ecx, [ecx + 0xc]
call fcn.00403360
cmp esi, 0x10e6
jne 0x5794d0
or ecx, 0xffffffff
jmp 0x5794d2
mov ecx, edi
mov eax, dword [ebx + 0x23c]
push 0x6157fc
mov word [eax + 0x10], cx
mov ecx, dword [ebx + 0x23c]
call fcn.00403360
lea ecx, [esp + 0x10]
call fcn.00401fb0
mov byte [esp + 0x78], 7
mov edi, 1
mov esi, dword [esp + 0x10]
mov ecx, edi
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x579526
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402400
mov esi, dword [esp + 0x10]
call fcn.0041a0c0
push 0x104
push esi
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00402e70
mov eax, dword [esi - 8]
mov ecx, edi
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x579569
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402400
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00402e70
push str.OCRDicV3
lea ecx, [esp + 0x28]
call fcn.00402cd0
mov byte [esp + 0x78], 8
mov ecx, edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x5795bd
push 0x104
lea ecx, [esp + 0x28]
call fcn.00402400
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, 0x104
or eax, edi
jge 0x5795de
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402400
mov esi, dword [esp + 0x10]
push dword [esp + 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00402e70
mov ecx, dword [ebx + 0x23c]
lea eax, [esp + 0x10]
push eax
lea ecx, [ecx + 4]
call fcn.00403360
push 0x3fb
mov ecx, ebx
mov edi, 0xff1
call fcn.0040c9e0
mov esi, eax
test esi, esi
je 0x57963a
cmp dword [esi + 0x20], 0
je 0x57963a
mov ecx, esi
call fcn.004068a0
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 0xff0
movzx edi, ax
mov eax, dword [ebx + 0x23c]
mov word [eax + 0x18], di
test esi, esi
je 0x579660
cmp dword [esi + 0x20], 0
je 0x579660
mov ecx, esi
call fcn.0040cb53
test eax, eax
je 0x579660
movzx eax, di
mov dword [esp + 0x44], eax
push 0x3fc
mov ecx, ebx
mov edi, 0xff1
call fcn.0040c9e0
mov esi, eax
test esi, esi
je 0x579693
cmp dword [esi + 0x20], 0
je 0x579693
mov ecx, esi
call fcn.004068a0
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 0xff0
movzx edi, ax
mov eax, dword [ebx + 0x23c]
mov word [eax + 0x1a], di
test esi, esi
je 0x5796b9
cmp dword [esi + 0x20], 0
je 0x5796b9
mov ecx, esi
call fcn.0040cb53
test eax, eax
je 0x5796b9
movzx eax, di
mov dword [esp + 0x48], eax
push 0x3fd
mov ecx, ebx
mov edi, 0xff1
call fcn.0040c9e0
mov esi, eax
test esi, esi
je 0x5796ec
cmp dword [esi + 0x20], 0
je 0x5796ec
mov ecx, esi
call fcn.004068a0
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 0xff0
movzx edi, ax
mov eax, dword [ebx + 0x23c]
mov word [eax + 0x1c], di
test esi, esi
je 0x579712
cmp dword [esi + 0x20], 0
je 0x579712
mov ecx, esi
call fcn.0040cb53
test eax, eax
je 0x579712
movzx eax, di
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.00590300
test eax, eax
jne 0x579737
cmp word [esp + 0x20], ax
jne 0x579737
lea ecx, [esp + 0x20]
call fcn.0058fdb0
mov ecx, dword [ebx + 0x23c]
mov ax, word [esp + 0x20]
push 0x3fa
mov word [ecx + 0x1e], ax
mov ecx, ebx
call fcn.0040c9e0
mov esi, eax
mov edi, 0x1180
test esi, esi
je 0x579775
cmp dword [esi + 0x20], 0
je 0x579775
mov ecx, esi
call fcn.00407510
push eax
mov ecx, esi
call fcn.00407530
movzx edi, ax
mov eax, dword [ebx + 0x23c]
mov word [eax + 0x20], di
test esi, esi
je 0x57979b
cmp dword [esi + 0x20], 0
je 0x57979b
mov ecx, esi
call fcn.0040cb53
test eax, eax
je 0x57979b
movzx eax, di
mov dword [esp + 0x40], eax
push 0x3f3
mov ecx, ebx
call fcn.0040c9e0
test eax, eax
je 0x579854
cmp dword [eax + 0x20], 0
je 0x579854
mov ecx, eax
call fcn.004068a0
cmp eax, 1
jne 0x579854
mov ecx, dword [ebx + 0x23c]
lea esi, [ebx + 0x2a8]
push esi
lea ecx, [ecx + 0x24]
call fcn.00403360
mov ecx, dword [ebx + 0x23c]
lea edi, [ebx + 0x2ac]
push edi
lea ecx, [ecx + 0x28]
call fcn.00403360
mov eax, dword [esi]
lea ecx, [ebx + 0x2a8]
mov eax, dword [eax - 0xc]
lea esi, [eax*2 + 2]
call fcn.00402e50
test esi, esi
je 0x579819
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec esi
jne 0x579810
push 0xffffffffffffffff
lea ecx, [ebx + 0x2a8]
call fcn.00402e70
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
lea esi, [eax*2 + 2]
call fcn.00402e50
test esi, esi
je 0x579849
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
dec esi
jne 0x579840
push 0xffffffffffffffff
mov ecx, edi
call fcn.00402e70
jmp 0x579879
mov ecx, dword [ebx + 0xbc]
call fcn.0056c160
cmp al, 1
jne 0x579879
push 0
mov edx, 0x103b00
mov ecx, ebx
call fcn.00574b30
add esp, 4
cmp eax, 1
jne 0x579890
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x220]
call fcn.00407590
mov ecx, ebx
call fcn.0043e5b3
lea ecx, [esp + 0x24]
call fcn.00401fe0
lea ecx, [esp + 0x10]
call fcn.00401fe0
lea ecx, [esp + 0x28]
call fcn.00401fe0
mov byte [esp + 0x78], 3
or ebx, 0xffffffff
mov edx, dword [esp + 0x18]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5798d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x78], 2
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5798f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x78], 1
mov ecx, ebx
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x579914
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x78], 0
mov ecx, ebx
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x57993b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x57993b
or ebx, 0xffffffff
mov dword [esp + 0x78], 0xffffffff
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x57995e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret