Function at 0x401000
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [0x43fc760], esi
call sub.USER32.dll_GetForegroundWindow
mov dword [0x43fc764], eax
sub esp, 4
push 0x14
lea edi, [0x4c2d44]
push edi
push dword [0x43fc764]
call sub.USER32.dll_GetWindowTextA
add esp, 4
mov dword [0x4c2d3c], eax
lea esi, [0x4c2d44]
mov ecx, 3
lea edi, [0x4ab3d4]
repe cmpsw word [esi], word es:[edi]
je 0x401061
xor edx, edx
mov dword [0x43fc764], edx
sub esp, 4
lea esi, str.getPrWeb.dll
push esi
call sub.KERNEL32.dll_LoadLibraryA
add esp, 4
mov dword [0x4f4860], eax
sub esp, 4
push 0x64
lea edi, [0x4c2e6c]
push edi
lea esi, [ebp + 8]
push esi
call fcn.0045f4c0
add esp, 4
lea esi, [0x4c2e6c]
mov ecx, 0x64
lea edi, [0x4ab3c0]
xor eax, eax
push 0x20
call fcn.0046e4c8
add esp, 4
cmp eax, 0
jne 0x4010c7
mov dword [ebp - 0x2c], 0
jmp 0x40115b
sub esp, 4
push 0x64
lea edx, [0x4c2e6c]
push edx
lea esi, [ebp + 8]
push esi
call fcn.0045f588
add esp, 4
lea esi, [0x4c2e6c]
mov ecx, 0x64
lea edi, [0x4ab3c0]
xor eax, eax
push 0x20
call fcn.0046e4c8
add esp, 4
cmp eax, 0
jne 0x401112
mov dword [ebp - 0x28], 0
jmp 0x40115b
sub esp, 4
push 0x64
lea edx, [0x4c2e6c]
push edx
lea esi, [ebp + 8]
push esi
call fcn.0045f650
add esp, 4
lea esi, [0x4c2e6c]
mov ecx, 0x64
lea edi, [0x4ab3c0]
xor eax, eax
push 0x20
call fcn.0046e4c8
add esp, 4
cmp eax, 0
jne 0x4011cf
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea edi, [ebp - 0xd0]
lea esi, [0x4c2e6c]
mov ecx, 0x64
push 0x401180
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
lea esi, [0x4ab3bc]
mov ecx, 1
push 0x40119c
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
push 0x65
lea edx, [ebp - 0xd0]
push edx
call fcn.00444738
mov dword [ebp - 0x30], 0
sub esp, 4
lea esi, [0x4ab3b8]
push esi
call fcn.004263d8
add esp, 4
jmp 0x401933
lea edi, [0x4c2d40]
push edi
push 0x14
lea esi, [0x4c2d58]
push esi
lea eax, [0x4ab3b4]
push eax
call fcn.0046e610
mov edi, dword [0x4c2d58]
and edi, 0xffffff
cmp edi, 0x206d2f
je 0x40131d
mov esi, dword [0x4c2d58]
and esi, 0xffffff
cmp esi, 0x204d2f
je 0x40131d
sub esp, 4
lea eax, [0x4c2d40]
push eax
call fcn.00444aec
add esp, 4
cmp word [0x4c2d40], 0
je 0x40124c
sub esp, 4
lea edi, [0x4ab3b4]
push edi
call fcn.004263d8
add esp, 4
lea esi, [0x4293e0]
push esi
push dword [0x43fc764]
push 0x68
push dword [ebp + 8]
call fcn.0046da50
mov dword [0x4c2d3c], eax
cmp dword [0x4c2d3c], 0xffffffff
jne 0x40131d
lea edi, [0x4c2e6c]
lea esi, str.Eroare_________in_DialogBox__alegere_moneda__
mov ecx, 0x2e
push 0x401297
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
mov ecx, 0x36
mov eax, 0x20
push 0x4012b2
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
lea esi, [0x4c2e74]
call sub.KERNEL32.dll_GetLastError
xor edi, edi
mov dword [ebp - 0x50], edi
mov edx, 5
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
sub esp, 4
lea ecx, [0x4b4040]
push ecx
lea edi, [ebp - 0x60]
push edi
lea edx, [0x4ab37c]
push edx
push 0x7f84ff00
lea esi, [ebp - 0x50]
push esi
call fcn.0046e6d0
add esp, 0x18
push 0x64
lea edi, [0x4c2e6c]
push edi
call fcn.00444738
sub esp, 4
lea esi, [0x4ab3b4]
push esi
call fcn.004263d8
add esp, 4
call fcn.00401945
lea edi, [0x4383c8]
push edi
push dword [0x43fc764]
push 0x67
push dword [ebp + 8]
call fcn.0046da50
mov dword [0x4c2d3c], eax
cmp dword [0x4c2d3c], 0xffffffff
jne 0x4013f3
lea edi, [0x4c2e6c]
lea esi, str.Eroare_________in_DialogBox__lista_devize__
mov ecx, 0x2c
push 0x40136d
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
mov ecx, 0x38
mov eax, 0x20
push 0x401388
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
lea esi, [0x4c2e74]
call sub.KERNEL32.dll_GetLastError
xor edi, edi
mov dword [ebp - 0x50], edi
mov edx, 5
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
sub esp, 4
lea ecx, [0x4b4054]
push ecx
lea edi, [ebp - 0x60]
push edi
lea edx, [0x4ab37c]
push edx
push 0x7f84ff00
lea esi, [ebp - 0x50]
push esi
call fcn.0046e6d0
add esp, 0x18
push 0x64
lea edi, [0x4c2e6c]
push edi
call fcn.00444738
sub esp, 4
lea esi, [0x4ab3b4]
push esi
call fcn.004263d8
add esp, 4
cmp dword [0x4c2d3c], 1
je 0x40140e
sub esp, 4
lea edi, [0x4ab3b8]
push edi
call fcn.004263d8
add esp, 4
xor esi, esi
mov dword [0x4c2d34], esi
mov edi, dword [0x43fc710]
mov dword [ebp - 0x18], edi
mov eax, 1
mov dword [0x4c2d38], eax
cmp edi, 0
jle 0x4014e5
imul edx, dword [0x4c2d38], 6
movzx edx, word [edx + 0x43d7d1e]
xor ecx, ecx
cmp edx, 0x2020
setne cl
imul esi, dword [0x4c2d38], 6
mov esi, dword [esi + 0x43d7d1a]
xor eax, eax
cmp esi, 0x20202020
setne al
or eax, ecx
cmp eax, 0
je 0x4014c3
mov edi, dword [0x4c2d34]
add edi, 1
mov dword [0x4c2d34], edi
mov edx, dword [0x4c2d34]
cmp edx, dword [0x4c2d38]
je 0x4014c3
imul esi, dword [0x4c2d34], 6
imul ecx, dword [0x4c2d34], 6
imul eax, dword [0x4c2d38], 6
mov eax, dword [eax + 0x43d7d1a]
imul edi, dword [0x4c2d38], 6
movzx edi, word [edi + 0x43d7d1e]
mov dword [esi + 0x43d7d1a], eax
mov di, di
mov word [ecx + 0x43d7d1e], di
mov edx, dword [0x4c2d38]
add edx, 1
mov dword [0x4c2d38], edx
mov esi, dword [ebp - 0x18]
sub esi, 1
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x18], 0
jg 0x401433
mov edi, dword [0x4c2d34]
mov dword [0x43fc710], edi
cmp dword [0x43fc710], 0
jne 0x40150c
sub esp, 4
lea ecx, [0x4ab3b8]
push ecx
call fcn.004263d8
add esp, 4
xor esi, esi
mov dword [0x43d7ca0], esi
lea edi, [0x429ae0]
push edi
push dword [0x43fc764]
push 0x65
push dword [ebp + 8]
call fcn.0046da50
mov dword [0x4c2d3c], eax
cmp dword [0x4c2d3c], 0xffffffff
jne 0x4015e5
lea edi, [0x4c2e6c]
lea esi, str.Eroare_________in_DialogBox__optiuni_extrase__
mov ecx, 0x2f
push 0x40155f
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
mov ecx, 0x35
mov eax, 0x20
push 0x40157a
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
lea esi, [0x4c2e74]
call sub.KERNEL32.dll_GetLastError
xor edi, edi
mov dword [ebp - 0x50], edi
mov edx, 5
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
sub esp, 4
lea ecx, [0x4b4068]
push ecx
lea edi, [ebp - 0x60]
push edi
lea edx, [0x4ab37c]
push edx
push 0x7f84ff00
lea esi, [ebp - 0x50]
push esi
call fcn.0046e6d0
add esp, 0x18
push 0x64
lea edi, [0x4c2e6c]
push edi
call fcn.00444738
sub esp, 4
lea esi, [0x4ab3b4]
push esi
call fcn.004263d8
add esp, 4
cmp dword [0x4c2d3c], 1
je 0x401600
sub esp, 4
lea edi, [0x4ab3b8]
push edi
call fcn.004263d8
add esp, 4
cmp word [0x43fc7d2], 0xffff
je 0x4018c0
lea edi, [0x4c2d6c]
lea esi, str.Denumirile_din_extrasul_de_resurse_al_devizului
mov ecx, 0x2f
push 0x40162c
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
mov ecx, 0xd1
mov eax, 0x20
push 0x401647
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
lea edi, [ebp - 0x170]
lea esi, [0x4c2d6c]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
push 0x100
lea edx, [ebp - 0x170]
push edx
call fcn.0046f8b0
mov dword [0x4c2d34], eax
mov esi, dword [0x43fc710]
mov ebx, esi
mov edi, 1
mov dword [0x4c2d38], edi
cmp esi, 0
jle 0x401787
cmp dword [0x4c2d34], 0xf0
jg 0x401739
mov edx, dword [0x4c2d34]
add edx, 1
mov dword [0x4c2d34], edx
imul esi, dword [0x4c2d38], 6
mov eax, dword [0x4c2d34]
mov ecx, dword [0x4c2d34]
sub ecx, eax
add ecx, 6
cmp ecx, 0
jge 0x4016cf
xor ecx, ecx
lea edi, [0x4c2d6c]
add edi, eax
lea esi, [esi + 0x43d7d1a]
mov eax, 6
push 0x4016ef
push ebp
mov ebp, esp
call fcn.0046f930
pop ebp
add esp, 4
mov eax, 0x20
push 0x401705
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
mov edx, dword [0x4c2d34]
add edx, 6
mov dword [0x4c2d34], edx
mov esi, dword [0x4c2d38]
add esi, 1
mov dword [0x4c2d38], esi
mov edi, ebx
sub edi, 1
mov ebx, edi
cmp ebx, 0
jg 0x401691
jmp 0x401787
mov eax, dword [0x4c2d34]
mov ecx, 0x100
sub ecx, eax
cmp ecx, 0
jge 0x40174d
xor ecx, ecx
lea edi, [0x4c2d6c]
add edi, eax
lea esi, [0x4ab2e8]
mov eax, 3
push 0x40176d
push ebp
mov ebp, esp
call fcn.0046f930
pop ebp
add esp, 4
mov eax, 0x20
push 0x401783
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
mov dword [ebp - 0x10], 0
lea edi, [ebp - 0x270]
lea esi, [0x4c2d6c]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
push 0x100
lea edx, [ebp - 0x270]
push edx
push 0x100
lea eax, [ebp - 0x168]
push eax
call fcn.0046f8d0
mov dword [ebp - 0x54], eax
xor esi, esi
mov dword [ebp - 0x50], esi
movsx edi, word [0x43fc7d2]
mov dword [ebp - 0x58], edi
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x64], edx
mov eax, edx
lea edi, [ebp - 0x280]
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x401803
sub edi, 0x1000
sub eax, 0x1000
test dword [edi], eax
cmp eax, 0x1000
jg 0x4017ef
sub edi, eax
test dword [edi], eax
mov esp, edi
mov dword [ebp - 0x68], esp
mov edi, dword [ebp - 0x68]
mov ecx, edx
lea esi, [ebp - 0x168]
push 0x401824
push ebp
mov ebp, esp
call fcn.0046e521
pop ebp
add esp, 4
mov esi, dword [ebp - 0x64]
mov edx, esi
mov eax, edx
mov edi, esp
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x401856
sub edi, 0x1000
sub eax, 0x1000
test dword [edi], eax
cmp eax, 0x1000
jg 0x401842
sub edi, eax
test dword [edi], eax
mov esp, edi
mov dword [ebp - 0x64], esp
mov edi, dword [ebp - 0x64]
mov ecx, edx
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x54]
push 0x401877
push ebp
mov ebp, esp
call fcn.0046f930
pop ebp
add esp, 4
mov eax, 0x20
push 0x40188d
push ebp
mov ebp, esp
call fcn.0046e6bd
pop ebp
add esp, 4
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], edx
lea edi, [0x4b407c]
push edi
lea eax, [ebp - 0x60]
push eax
lea ecx, [0x4ab2e0]
push ecx
push 0x7f84ff00
push dword [ebp - 0x58]
lea esi, [ebp - 0x50]
push esi
call fcn.0046fa30
add esp, 0x18
lea esp, [ebp - 0x280]
call fcn.0043d8c0
mov edi, 0xffffffff
mov dword [0x43d7c8e], edi
cmp word [0x4366b88], 7
je 0x401902
cmp word [0x4366b88], 2
je 0x401902
cmp word [0x4366b88], 3
je 0x401902
mov esi, 1
mov word [0x4366bd7], si
jmp 0x40190e
mov eax, 2
mov word [0x4366bd7], ax
call fcn.0040265c
mov dword [ebp - 0x30], 0
sub esp, 4
lea edi, [0x4ab3b8]
push edi
call fcn.004263d8
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x30]
lea esp, [ebp - 0x280]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10