Function at 0x406240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x28]
push edi
mov word [ebp - 0x10], ax
xor edi, edi
xor eax, eax
mov dword [ebp - 8], edi
push 0x64
mov word [ebp - 0xe], ax
call fcn.00407a16
mov ecx, dword [ebp + 0x10]
call fcn.00407480
mov ebx, dword [ebp + 0xc]
cmp word [ebx], di
je 0x40646a
lea esp, [esp]
movzx eax, word [ebx + edi*2]
cmp eax, 0x20
je 0x40637f
cmp eax, 9
je 0x40637f
movzx eax, word [ebx + edi*2]
mov dword [ebp - 8], edi
test ax, ax
je 0x40646a
add dword [eax], eax
invalid
mov esi, eax
mov word [ebp - 0xe], di
cmp esi, 0x30
jae 0x40631e
cmp esi, 0x2e
je 0x406323
cmp esi, 0x41
jae 0x406385
cmp esi, 0x61
jae 0x4064a1
cmp esi, 0x5f
je 0x4064aa
mov eax, esi
cmp eax, 0x24
je case.0x4062f8.64
cmp eax, 0x3d
je 0x4064e6
sub eax, 0x1a
cmp eax, 0x44
ja case.0x4062f8.27
movzx eax, byte [eax + 0x4067f4]
jmp dword [eax*4 + 0x4067a8]
push 0x4f
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
inc edi
mov dword [ebp - 8], edi
jmp 0x40645f
cmp esi, 0x39
ja 0x4062b1
mov edi, dword [ebp + 0x10]
mov eax, 0x40
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + 8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x406346
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4 - 4]
movzx eax, word [eax + 8]
mov dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00405f6c
cmp al, 1
jne 0x406721
cmp word [ebp + 0xc], 0x4a
je 0x4066cb
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040750f
mov edi, dword [ebp - 8]
jmp 0x40645f
inc edi
jmp 0x406280
cmp esi, 0x5a
ja 0x4062bf
jmp 0x4064aa
push dword [ebp + 0x10]
call fcn.00405e40
test eax, eax
js 0x4067a2
cmp esi, 0x24
jne 0x406665
mov eax, 0x33
push eax
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], edi
call fcn.00407d8c
movzx esi, word [ebx + edi*2]
cmp si, 0x5a
jbe 0x40640e
cmp si, 0x61
jb 0x406416
cmp si, 0x7a
ja 0x406416
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 1
jg 0x43df92
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
inc eax
push eax
call fcn.00407b53
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
xor edx, edx
mov word [ecx + eax*2], si
inc eax
mov dword [ebp - 0x24], eax
inc edi
mov word [ecx + eax*2], dx
jmp 0x4063c6
cmp si, 0x41
jae 0x4063dc
jmp 0x4063d0
cmp si, 0x30
jae 0x4064d7
cmp si, 0x5f
je 0x4063dc
cmp dword [ebp - 0x24], 0
mov dword [ebp - 8], edi
je 0x406799
lea ecx, [ebp - 0x28]
call fcn.00407e4f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [0x48f67c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405d41
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
add byte [eax], al
cmp word [ebx + edi*2], 0
jne 0x406280
jmp [edx + 0x7f]
push 0x7f
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0xe], di
call fcn.0040750f
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00405904
lea ecx, [ebp - 0x18]
call fcn.00405d9b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call 0x396a7d
call [edi - 0x75]
invalid
cmp esi, 0x7a
ja 0x4062c8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00405e72
cmp dword [ebp - 0x18], 0xffffffff
je 0x43dfec
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
mov edi, dword [ebp - 8]
jmp 0x40645f
cmp si, 0x39
ja 0x406420
jmp 0x4063dc
inc edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
je 0x43df82
push 0x41
call fcn.00405db2
jmp 0x406453
push 0x4e
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
inc edi
mov dword [ebp - 8], edi
jmp 0x40645f
push 0x47
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
inc edi
mov dword [ebp - 8], edi
jmp 0x40645f
push 0x48
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
inc edi
mov dword [ebp - 8], edi
jmp 0x40645f
push 0x40
lea ecx, [ebp - 0x18]
call fcn.00405db2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
inc edi
mov dword [ebp - 8], edi
jmp 0x40645f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
call fcn.004061bf
lea ecx, [ebp - 0x18]
test eax, eax
js 0x43e007
push 0x36
call fcn.00405db2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405d41
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040750f
mov edi, dword [ebp - 8]
jmp 0x40645f
push 0x4d
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x406453
inc edi
lea ecx, [ebp - 0x18]
push 0x56
mov dword [ebp - 8], edi
call fcn.00405db2
jmp 0x406453
push 0x49
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x406453
inc edi
lea ecx, [ebp - 0x18]
push 0x52
mov dword [ebp - 8], edi
call fcn.00405db2
jmp 0x406453
push 0x4c
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x406453
inc edi
lea ecx, [ebp - 0x18]
push 0x55
mov dword [ebp - 8], edi
call fcn.00405db2
jmp 0x406453
push 0x4b
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x406453
jmp 0x43dee4
mov eax, 0x32
jmp 0x4063b1
push 0x4a
lea ecx, [ebp - 0x18]
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
jne 0x406453
jmp 0x43ded1
inc edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], edi
cmp word [ebx + edi*2], 0x3d
je 0x406701
push 0x42
call fcn.00405db2
jmp 0x406453
movzx eax, word [ebx + edi*2 + 2]
lea ecx, [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
sub eax, 0x3d
je 0x40678d
dec eax
je 0x406711
push 0x43
call fcn.00405db2
jmp 0x406453
cmp word [ebp - 0x10], 5
jne 0x40636c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
neg ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
adc eax, 0
neg eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, 0x49
mov word [eax + 8], cx
jmp 0x40636c
push 0x45
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
jmp 0x406453
push 0x44
call fcn.00405db2
inc edi
mov dword [ebp - 8], edi
jmp 0x406453
mov edi, dword [ebp - 8]
cmp esi, 0x2e
jne 0x4062b6
inc edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], edi
call fcn.00407d8c
movzx eax, word [ebx + edi*2]
cmp ax, 0x5a
jbe 0x40675b
cmp ax, 0x61
jb 0x406763
cmp ax, 0x7a
ja 0x406763
push eax
lea ecx, [ebp - 0x28]
call fcn.00407924
inc edi
jmp 0x406739
cmp ax, 0x41
jae 0x40674f
jmp 0x406743
cmp ax, 0x30
jae 0x406791
cmp ax, 0x5f
je 0x40674f
cmp ax, 0x7f
ja 0x40674f
cmp dword [ebp - 0x24], 0
mov dword [ebp - 8], edi
je 0x406799
push 0x35
lea ecx, [ebp - 0x18]
call fcn.00405db2
jmp 0x406447
push 0x46
jmp 0x406713
cmp ax, 0x39
jbe 0x40674f
jmp 0x406769
lea eax, [edi - 1]
push eax
jmp 0x43e01c
push edi
jmp 0x43e01c
add byte [ebp - 0x75], dl
in al, dx
sub esp, 0x2c
push ebx
push esi
push edi
push 0x2000
mov edi, ecx
call fcn.00420db6
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.0040522e
mov esi, dword [ebp + 8]
cmp word [esi], 0x23
je 0x406929
push 3
pop ebx
mov eax, dword [ebp - 4]
dec dword [eax]
jne 0x40691e
push eax
call fcn.00420e2c
sbb byte [ebp - 0xa6ffff], ah
jne 0x406910
movsd dword es:[edi], dword [esi]
add dword [eax], eax
pop ecx
push dword [ebp - 8]
call fcn.00420e2c
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xf
push 0x492624
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x406a72
push 0xb
push 0x49267c
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x406a7a
push 0xd
push 0x492644
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x43e2ba
push 0x16
push 0x4925f4
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x43e2c5
push 0xd
push 0x492660
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x43e348
push 8
push 0x49242c
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x43e38a
push 0xf
push 0x48fb50
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x4069e5
push 3
push 0x48fb70
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
jne 0x406a72
xor ebx, ebx
inc ebx
mov dword [ebp + 8], ebx
push ecx
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0040586d
test al, al
je 0x43e3f7
mov eax, dword [ebp + 0x10]
push esi
inc dword [eax]
call fcn.00406faa
push esi
call fcn.00406f5d
push 0xf
push 0x48fb50
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x406a84
push 3
push 0x48fb70
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x406a84
push 0xd
push 0x48fb2c
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
je 0x406a5e
push 3
push 0x48fb48
push esi
call fcn.004237cb
add esp, 0xc
test eax, eax
jne 0x4069eb
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
test eax, eax
jle 0x406907
jmp 0x4069eb
xor ebx, ebx
inc ebx
jmp 0x406907
xor ebx, ebx
inc ebx
mov byte [edi], bl
jmp 0x406907
inc dword [ebp + 8]
jmp 0x4069eb
je 0x42e6ea
xor edx, edx
dec ecx
cmp word [eax], dx
je 0x42e6ea
add eax, 2
mov ecx, dword [edx + 0x75]
sub eax, esi
sub eax, esi
sar eax, 1
jmp 0x33b6eb2f
sar ch, 1
add dword [eax], eax
invalid
sbb byte [ebp + 0x75], dh
adc byte [eax], cl
call 0x4045f8b4
add eax, ecx
invalid
add al, byte [eax + 1]
enter 0xffffffffffffe9ff, 0x51
cmp esp, 0xffffffff
inc edi
lea ecx, [ebp - 0x18]
push 0x53
mov dword [ebp - 8], edi
call fcn.00405dbc
jmp 0x40645d
call fcn.00405dbc
jmp 0x40645d
add dl, byte [esi - 0x76b80004]
inc dword [edi - 0x77]
jge 0x43df13
jmp 0x406469
jecxz 0x43dec9
cld
inc dword [edi - 0x77]
jge 0x43df32
jmp 0x406469
les edx, [ebp - 0x76b80004]
inc dword [edi - 0x77]
jge 0x43df51
jmp 0x406469
mov edi, 0xc085f0
mov dword [ebp - 8], edi
rol byte [eax], 0x89
jge 0x43df7f
jmp 0x406469
sub dword [esi - 4], edi
inc dword [edi - 0x77]
jge 0x43df8f
jmp 0x7640645d
test dword [ecx + ecx*4], ecx
dec ebp
fsubr st(1)
push cs
test ah, bh
invalid
push dword [ebp - 8]
push 0x7518138c
jmp 0x43e02b
adc byte [eax], cl
call 0x45f8b4
lea ecx, [ebp - 0x18]
push 0x7f
call fcn.00405dbc
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.00407519
jmp 0x43e033
inc ebp
call 0x9539c872
cld
invalid
jne 0x43e03d
or al, ch
sbb dword [eax], 0xce830002
invalid
or esi, 0xffffffff
jmp 0x406490
or al, 0x50
lea eax, [ebp + 0x10]
push eax
push 0x4b8400
lea ecx, [ebp - 0x68]
call 0x74469565
mov dword [0x4d8d1d74], ebx
cwde
call fcn.00404e54
movzx eax, byte [edi + 2]
push eax
push ecx
mov ecx, dword [edi + 0x60]
call fcn.00464302
jge 0x43e0c5
jmp 0x4068db
jmp 0x43e0d9
mov dword [eax], 0x7548fb78
lea eax, [eax + 0x10]
mov dword [eax - 0xc], ebx
mov dword [eax - 8], ebx
mov dword [eax - 4], ebx
dec ecx
jns 0x43e0c7
jmp 0x43e0e0
add eax, ecx
dec dword [ecx - 0x7699b3a9]
inc ebp
ljmp 0xf445
lea ecx, [ebp - 0x30]
call fcn.00407620
lea ecx, [ebp - 0x20]
call fcn.00405da5
jmp 0x4068db
lea ecx, [ebp - 0x68]
call fcn.00404e54
jmp 0x43e27d
fild dword [ebx - 0x78]
pop edi
add ecx, ebp
inc edx
xchg ah, bh
dec dword [ebp - 0x4617d3b2]
sbb esi, edi
je 0x43e2f7
push esi
push ebx
call fcn.00406f67
push ebx
call fcn.00406fb4
push ebx
call 0xfe422c06
jge 0x43e357
and bl, byte [edx + 0xf]
mov bh, 0x4c
inc ebx
invalid
je 0x43e32e
push 0x27
pop edx
cmp cx, dx
je 0x43e32e
movzx eax, word [ebx]
push 0x22
pop ecx
cmp ax, cx
je 0x43e31c
cmp ax, dx
je 0x43e31c
mov ecx, dword [edi + 4]
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x43e346
push ebx
call 0xc9420e36
pop ecx
push esi
push 0x4b8428
jmp 0x7544e412
cmp word [ebx], cx
jne 0x43e31c
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
lea eax, [ebx + 2]
mov ecx, dword [edi + 4]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
push ebx
call 0xc9420e36
pop ecx
jmp 0x406a7c
ljmp 0x2ae9:0x59c8fe2a
jbe 0x406a7c
mov eax, dword [edi + 0x1c]
or al, 0x4d
or al, 0x6a
add ah, al
xor al, 0xb0
call fcn.00407912
test eax, eax
je 0x43e37c
inc esi
cmp esi, dword [edi + 0x20]
jb 0x43e35d
jmp 0x406a7c
mov eax, dword [edi + 0x2c]
xor ebx, ebx
inc ebx
mov eax, dword [eax + esi*4]
cmp dword [eax], ebx
jle 0x406911
test esp, edi
jmp [edx + 4]
push 4
jmp 0x406910
cld
call dword [esi + 0x68]
mov byte [ebx + ecx*2 - 0x74ee1500], al
cmp ch, bl
fld qword [eax]
jle 0x406911
push esi
push 0x4b84b4
mov eax, dword [ebp + 0x10]
mov ecx, edi
push dword [eax]
jne 0x43e490
or al, 0xe8
mov dl, byte [ebx]
add al, byte [eax]
xor ebx, ebx
jmp 0x406911
cld
inc dword [ebp - 0x72da8a40]
inc esp
and al, 0x38
push eax
lea eax, [esp + 0x18]
push eax
push 0x4b8400
lea ecx, [esp + 0x6c]
call fcn.00469565
lea ecx, [esp + 0x60]
test eax, eax
je 0x43e4d7
mov al, 2
add byte [ebp - 0x7a9fdbb4], cl
sal byte [ecx - 0x18], 0x99
imul edi, esp, 0x1475ffff
call fcn.00404e54
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push 0x8b0c83d0
jmp [edx + 1]
call fcn.00404e54
mov eax, dword [esp + 0x14]
push 4
pop edx
push 0x10
mov edi, dword [eax]
add eax, ecx
dec dword [ecx - 0x76e3dbac]
jl 0x43e515
cmp al, 0x66
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], 0x7548fb78
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call 0x75420dc0
pop ds
call 0x4468599f
inc esp
pop eax
add byte [ecx + edx - 0x39], dh
adc edi, eax
push es
js 0x43e51a
dec eax
jne 0x43e4ab
pop esi
add al, 0x89
pop esi
or byte [ecx + 0x6eb0c5e], cl
mov esi, ebx
mov dword [esp + 0x40], esi
add eax, ecx
dec dword [ecx + 0x6a442474]
add eax, 0x2c244c8d
mov word [esp + 0x36], ax
call fcn.00405dbc
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push eax
mov ecx, esi
call fcn.00407519
xor eax, eax
mov dword [esp + 0x3c], ebx
inc eax
cmp edi, eax
mov dword [eax + edx], esp
dec esp
mov edi, dword [esp + 0x1c]
jl 0x42e74a
mov ecx, dword [esp + 0x18]
push esp
inc esp
and al, 0x14
add eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x28]
movzx eax, byte [eax]
push eax
mov dword [esp + 0x28], eax
call fcn.00405dbc
lea ecx, [esp + 0x28]
call fcn.004673f3
test byte [0x548b1874], bl
and al, 0x18
push esp
inc esp
and al, 0x14
add eax, edx
add edx, 4
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x42e6d9