Function at 0x421520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6f45
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x54b07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x7c]
call fcn.00409810
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push dword [0xf541ec]
call ebx
push 0
push 0
push 0x1009
push dword [0xf541ec]
call ebx
mov edi, dword [0x2795d90]
mov ebx, dword [0x2795d94]
cmp edi, ebx
je 0x4215fd
mov esi, dword [edi]
test esi, esi
je 0x4215e0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4215c1
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4215b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a35
mov eax, edx
push ecx
push eax
call fcn.0049dbeb
add esp, 8
push 0x101c
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.0049dbeb
add esp, 8
add edi, 4
cmp edi, ebx
jne 0x421588
mov ebx, dword [0x2795d94]
mov edi, dword [0x2795d90]
cmp edi, ebx
je 0x4215fd
mov dword [0x2795d94], edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0
cmp dword [0x2693414], 0
mov esi, dword [0x2693418]
mov edi, dword [0x269341c]
je 0x421703
cmp esi, edi
je 0x421835
mov ebx, dword [ebp - 0x48]
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
mov eax, Ordinal_1
sub eax, ecx
cmp eax, 1
jb 0x421a3a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42165d
mov eax, dword [esi]
push 1
push 0x5341b8
push ecx
push eax
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404aa0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00403600
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4216b7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4216ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a35
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
sub eax, ecx
mov dword [ebp - 0x18], 0
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
call fcn.00422470
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004042e0
add esi, 0x18
cmp esi, edi
jne 0x421640
jmp 0x421835
cmp esi, edi
je 0x421835
mov ebx, dword [ebp - 0x48]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov al, byte [0x534968]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 5
mov eax, Ordinal_1
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x421a3a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x421759
mov eax, dword [esi]
push 1
push 0x534964
push ecx
push eax
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00404aa0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x50]
call fcn.004032a0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4217ba
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4217b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a35
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x421804
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4217fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a35
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
push eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
call fcn.00422470
lea ecx, [ebp - 0x50]
call fcn.004042e0
add esi, 0x18
cmp esi, edi
jne 0x421710
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x68]
push dword [ebp - 0x44]
mov byte [ebp - 4], 0xa
push dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00422410
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], eax
cmp ebx, eax
je 0x4219a9
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x42188b
mov eax, dword [ebx]
push 0x53498c
push eax
call fcn.004ce8d6
push 2
mov esi, eax
push 0
push esi
mov dword [ebp - 0x70], esi
call fcn.004ceda0
push esi
call fcn.004ce7e4
push 0
mov edi, eax
push 0
push esi
mov dword [ebp - 0x6c], edi
call fcn.004ceda0
add esp, 0x24
cmp edi, 0x1000
jbe 0x421991
push 0x1000
call fcn.004cf109
push esi
push 1
mov edi, eax
push 0x1000
push edi
call fcn.004cefce
add esp, 0x14
cmp byte [edi], 0x37
jne 0x421907
xor esi, esi
lea ecx, [ecx]
mov cl, byte [edi + esi*2]
lea edx, [edi + 1]
mov al, byte [edx + esi*2]
mov byte [edi + esi*2], al
mov byte [edx + esi*2], cl
inc esi
cmp esi, 0x20
jb 0x4218f0
jmp 0x42190a
lea edx, [edi + 1]
cmp byte [edi], 0x40
jne 0x421936
mov esi, 0x10
mov cl, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 2]
mov byte [edx - 5], al
movzx eax, byte [edx - 3]
mov byte [edx - 2], cl
mov cl, byte [edx - 4]
mov byte [edx - 4], al
mov byte [edx - 3], cl
sub esi, 1
jne 0x421914
push 0x101c
call fcn.0049dbb6
mov esi, eax
xor eax, eax
push 0x1000
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea eax, [esi + 0x1c]
push eax
call fcn.004c77d0
add esp, 0x10
mov ecx, esi
push ebx
call fcn.004223e0
mov eax, dword [ebp - 0x6c]
mov edx, esi
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x18], eax
call fcn.00421360
push edi
call fcn.004cedda
mov esi, dword [ebp - 0x70]
add esp, 4
push esi
call fcn.004cea42
inc dword [ebp - 0x44]
add ebx, 0x18
add esp, 4
cmp ebx, dword [ebp - 0x48]
jne 0x421881
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x420fe0
push 0
push 0x1030
push dword [0xf541ec]
call esi
push 0
push 1
push 0xb
push dword [0xf541ec]
call esi
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409810
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.00410070
add esp, 4
push 0
push 0xf4240
push dword [eax + 4]
push dword [eax]
call fcn.004f5660
push eax
push str.Rombrowser_loading_took__dms_n
call fcn.00402650
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.004042e0
lea ecx, [ebp - 0x5c]
call fcn.004042e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dba8
mov esp, ebp
pop ebp
ret
call fcn.004cb586
call fcn.004018c0
int3