Function at 0x472220
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x370
push ebx
push ebp
push esi
push edi
push 0x47ead0
push eax
call dword [0x478198]
mov ecx, dword [0x4929e4]
mov ebx, dword [0x478194]
mov ebp, eax
push ebp
push 1
push ecx
lea edx, [esp + 0x80]
push edx
call ebx
add esp, 0x18
mov edi, str.5.1.0
lea esi, [esp + 0x6c]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x472283
push ebp
call fcn.0040b000
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x370
ret
mov ecx, dword [esp + 0x384]
mov edx, dword [0x4781c0]
mov esi, dword [0x4781bc]
push ecx
add edx, 0x20
push str._nWarning:_The_binary_database_file___s__contains
push edx
call esi
mov eax, dword [0x4781c0]
add eax, 0x20
push str._n_______a_version_5.1.0_database_which__although_it_can
push eax
call esi
mov ecx, dword [str.5.2.0]
mov edx, dword [0x4781c0]
push ecx
add edx, 0x20
push str._n_______be_read_by_this_version___s__of_the_database
push edx
call esi
mov eax, dword [0x4781c0]
add eax, 0x20
push str._n_______reader__is_out_of_date_and_may_result_in_some
push eax
call esi
mov ecx, dword [0x4781c0]
add ecx, 0x20
push str._n_______unexpected_behavior._Please_check_your__WDIR_
push ecx
call esi
mov edx, dword [0x4781c0]
add edx, 0x20
push str._n______environment_variable__currently_set_to
push edx
call esi
push 0x479b88
call dword [0x4781d4]
push eax
mov eax, dword [0x4781c0]
add eax, 0x20
push str._n_______________s_
push eax
call esi
mov ecx, dword [0x4781c0]
add esp, 0x48
add ecx, 0x20
push str._n______to_ensure_that_it_is_set_correctly._If_the_file_is
push ecx
call esi
mov edx, dword [0x4781c0]
add edx, 0x20
push str._n______located_in_the_current_working_directory_it_should
push edx
call esi
mov eax, dword [0x4781c0]
add eax, 0x20
push str._n______be_removed_or_replaced_with_the_appropriate_file._n
push eax
call esi
push ebp
call dword [0x4780d0]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.0043c3d0
mov esi, eax
lea eax, [esp + 0x90]
add esp, 0x24
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472375
sub eax, edi
inc eax
push eax
call fcn.0040c100
add esp, 4
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x6c]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x472391
cmp dword [esp + 0x24], 0xe
jne 0x4723bb
cmp dword [0x4a1298], 2
jl 0x4723c5
push str._n___Note:_Redefining_existing_master_database.
call dword [0x4781a8]
add esp, 4
jmp 0x4723c5
mov eax, dword [esp + 0x390]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x384]
mov edx, dword [esp + 0x38c]
mov eax, dword [esp + 0x388]
push ecx
push edx
push eax
push esi
call fcn.0043b9d0
push ebp
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x30]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x472442
lea esp, [esp]
push ebp
push 1
lea edx, [esp + 0x34]
push 0x40
push edx
call ebx
push ebp
push 1
lea eax, [esp + 0x198]
push 0x200
push eax
call ebx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1a4]
push edx
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0043c640
mov eax, dword [esp + 0x40]
add esp, 0x30
inc edi
cmp edi, eax
jl 0x472400
push ebp
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x20]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x472473
jmp 0x472460
push ebp
push esi
call fcn.00471f80
mov eax, dword [esp + 0x18]
add esp, 8
inc edi
cmp edi, eax
jl 0x472460
xor edi, edi
test eax, eax
jle 0x472496
lea esp, [esp]
push esi
mov ecx, ebp
mov eax, edi
call fcn.00471eb0
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
cmp edi, eax
jl 0x472480
push ebp
push 1
lea edx, [esp + 0x18]
push 4
push edx
call ebx
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4724e5
mov eax, dword [0x4929ec]
push ebp
push 1
push eax
lea ecx, [esp + 0x18c]
push ecx
call ebx
push 0
mov edi, ebp
call fcn.00471d40
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0x14
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4724b5
push ebp
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], 0
jle 0x47255b
mov eax, dword [0x4929f0]
push ebp
push 1
push eax
lea ecx, [esp + 0x18c]
push ecx
call ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x194]
push eax
push esi
call fcn.0043d0a0
mov dword [esp + 0x3c], eax
add eax, 0x14
push eax
push esi
mov edi, ebp
call fcn.00471e30
mov ecx, dword [esp + 0x44]
add ecx, 4
push ecx
call fcn.00471d40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add esp, 0x28
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x472504
push ebp
push 1
lea edx, [esp + 0x24]
push 4
push edx
call ebx
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x472586
mov eax, ebp
mov ebx, esi
call fcn.00471db0
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x472574
lea eax, [esi + 4]
push eax
mov edi, ebp
call fcn.00471d40
push ebp
call fcn.0040b000
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret