Function at 0x412f31
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x85c
mov ebx, dword [ebp + 0x10]
mov dword [0x44d710], 0
mov dword [0x44d714], 0
mov dword [0x44d71c], 0
cmp dword [0x44a0cc], 0
je 0x412f75
sub esp, 0xc
push dword [ebp + 0x18]
call fcn.00412dff
add esp, 0x10
mov dword [0x4e02a0], 0xfe
test byte [ebx + 0x11c], 0x40
je 0x412f92
mov eax, 0
jmp 0x413b77
mov esi, dword [ebp + 0xc]
mov edi, 0x412ec6
mov ecx, 2
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x412fc5
mov esi, dword [ebp + 0xc]
mov edi, 0x412ec8
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x412fcb
mov byte [ebx + 0x28], 1
jmp 0x412fde
lea edi, [ebx + 0x29]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebx + 0x28], cl
mov al, byte [ebx + 0x28]
add eax, 0x21
mov byte [ebx + 8], al
and eax, 0xff
mov dword [0x44d718], eax
test eax, 1
je 0x413006
inc eax
mov dword [0x44d718], eax
mov al, byte [0x44d718]
mov byte [ebx + 8], al
cmp dword [0x44d718], 0x45
jg 0x413019
mov dword [0x44d718], 0x46
mov edx, dword [ebp + 0x18]
mov ax, word [edx + 6]
and eax, 0xfffff000
cmp ax, 0x8000
jne 0x413197
cmp dword [0x44a1d0], 0
je 0x413197
cmp dword [ebx + 0x13c], 0
je 0x413197
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x2a
cmp eax, dword [0x4e02a0]
jle 0x41307a
sub esp, 8
push 0x12c
push 0x412ecb
call fcn.00412c20
add esp, 0x10
mov edx, dword [0x44d710]
mov byte [edx + 0x4dc190], 0x41
mov byte [edx + 0x4dc191], 0x41
mov byte [edx + 0x4dc192], 0xe
mov byte [edx + 0x4dc193], 2
lea ecx, [edx + 4]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x48]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 5]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x49]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 6]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x4a]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 7]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x4b]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 8]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x4d]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 9]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x4e]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 0xa]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x4f]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 0xb]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x50]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 0xc]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
movsx ax, byte [eax + 0x39]
mov byte [ecx + 0x4dc190], al
lea ecx, [edx + 0xd]
mov dword [0x44d710], ecx
mov eax, dword [ebx + 0x13c]
mov al, byte [eax + 0x38]
mov byte [ecx + 0x4dc190], al
add edx, 0xe
mov dword [0x44d710], edx
cmp dword [0x44a0c8], 0
je 0x413b1c
test dword [ebp + 0x1c], 0x10
je 0x41320c
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x53
mov byte [eax + 0x4dc191], 0x50
mov byte [eax + 0x4dc192], 7
mov byte [eax + 0x4dc193], 1
mov byte [eax + 0x4dc194], 0xbe
mov byte [eax + 0x4dc195], 0xef
lea edx, [eax + 6]
mov dword [0x44d710], edx
cmp dword [0x44a0cc], 0
je 0x4131fa
mov byte [edx + 0x4dc190], 0xe
add eax, 7
jmp 0x413207
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0
inc eax
mov dword [0x44d710], eax
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x21
cmp eax, dword [0x4e02a0]
jle 0x41323d
sub esp, 8
push 0x156
push 0x412ece
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x52
mov byte [eax + 0x4dc191], 0x52
mov byte [eax + 0x4dc192], 5
mov byte [eax + 0x4dc193], 1
lea ecx, [eax + 4]
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x844], 0
mov byte [ecx + 0x4dc190], 0
add eax, 5
mov dword [0x44d710], eax
mov esi, dword [ebp + 0xc]
mov edi, 0x412ec6
mov ecx, 2
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x413501
mov esi, dword [ebp + 0xc]
mov edi, 0x412ec8
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x413501
cmp dword [0x44a1dc], 0
je 0x413307
cmp dword [ebx + 0x13c], 0
je 0x413307
cmp dword [ebx + 0x144], 0
je 0x413307
mov edi, dword [ebx + 0x13c]
sub esp, 4
push dword [0x44a24c]
push dword [0x44a250]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x400
push edi
lea eax, [ebp - 0x418]
jmp 0x413333
mov edi, dword [ebp + 0xc]
sub esp, 4
push dword [0x44a24c]
push dword [0x44a248]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x834]
push eax
push 0x400
push edi
lea eax, [ebp - 0x818]
push eax
call fcn.00412ab0
add esp, 0x20
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x22
cmp eax, dword [0x4e02a0]
jle 0x41336d
sub esp, 8
push 0x179
push 0x412ed1
call fcn.00412c20
add esp, 0x10
cmp dword [ebp - 0x82c], 0
je 0x413501
mov esi, dword [ebp - 0x82c]
mov dword [ebp - 0x848], 0
mov ecx, dword [0x44d718]
lea eax, [ecx + esi]
mov edx, dword [0x44d710]
sub edx, dword [0x44d714]
lea eax, [edx + eax + 0x21]
cmp eax, dword [0x4e02a0]
jle 0x4133c1
add edx, ecx
mov eax, dword [0x4e02a0]
sub eax, edx
lea esi, [eax - 0x21]
mov dword [ebp - 0x848], 1
cmp esi, 0xf8
jle 0x4133d4
mov esi, 0xf8
inc dword [ebp - 0x848]
test esi, esi
jns 0x4133eb
sub esp, 4
push esi
push 0x412ef0
push 0xffffffffffffffff
call fcn.00445e41
add esp, 0x10
mov edx, dword [0x44d710]
mov byte [edx + 0x4dc190], 0x4e
mov byte [edx + 0x4dc191], 0x4d
lea eax, [esi + 5]
mov byte [edx + 0x4dc192], al
mov byte [edx + 0x4dc193], 1
lea ecx, [edx + 5]
mov dword [0x44d710], ecx
cmp dword [ebp - 0x82c], esi
setne byte [edx + 0x4dc194]
or dword [ebp - 0x844], 8
cmp dword [0x44a1dc], 0
je 0x41346e
cmp dword [ebx + 0x13c], 0
je 0x41346e
cmp dword [ebx + 0x144], 0
je 0x41346e
sub esp, 4
push dword [0x44a24c]
push dword [0x44a250]
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
push esi
push edi
lea eax, [ecx + 0x4dc190]
jmp 0x413497
sub esp, 4
push dword [0x44a24c]
push dword [0x44a248]
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
push esi
push edi
mov eax, dword [0x44d710]
add eax, 0x4dc190
push eax
call fcn.00412ab0
add esp, 0x20
mov eax, dword [0x44d710]
mov dl, byte [ebp - 0x838]
add edx, 5
mov byte [eax + 0x4dc18d], dl
add edi, dword [ebp - 0x83c]
mov edx, dword [ebp - 0x838]
add eax, edx
mov dword [0x44d710], eax
sub dword [ebp - 0x82c], edx
cmp dword [ebp - 0x82c], 0
je 0x413501
cmp dword [ebp - 0x848], 0
je 0x4134f4
sub esp, 8
push 0x1a4
push 0x412ed1
call fcn.00412c20
add esp, 0x10
cmp dword [ebp - 0x82c], 0
jne 0x41337a
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x40
cmp eax, dword [0x4e02a0]
jle 0x413532
sub esp, 8
push 0x1aa
push 0x412f16
call fcn.00412c20
add esp, 0x10
mov edx, dword [0x44d710]
mov byte [edx + 0x4dc190], 0x50
mov byte [edx + 0x4dc191], 0x58
mov byte [edx + 0x4dc192], 0x24
mov byte [edx + 0x4dc193], 1
add edx, 4
mov dword [0x44d710], edx
or dword [ebp - 0x844], 1
sub esp, 8
mov esi, dword [ebp + 0x18]
mov ax, word [esi + 6]
and eax, 0xffff
push eax
add edx, 0x4dc190
push edx
call fcn.0040e517
mov edx, dword [0x44d710]
add edx, 8
mov dword [0x44d710], edx
add esp, 8
movsx eax, word [esi + 8]
push eax
add edx, 0x4dc190
push edx
call fcn.0040e517
mov edx, dword [0x44d710]
add edx, 8
mov dword [0x44d710], edx
add esp, 8
movsx eax, word [esi + 0xa]
push eax
add edx, 0x4dc190
push edx
call fcn.0040e517
mov edx, dword [0x44d710]
add edx, 8
mov dword [0x44d710], edx
add esp, 8
movsx eax, word [esi + 0xc]
push eax
add edx, 0x4dc190
push edx
call fcn.0040e517
add dword [0x44d710], 8
mov ax, word [esi + 6]
and eax, 0xfffff000
add esp, 0x10
cmp ax, 0x2000
je 0x41360c
cmp ax, 0x3000
jne 0x4136bb
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x30
cmp eax, dword [0x4e02a0]
jle 0x41363d
sub esp, 8
push 0x1c3
push 0x412f19
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x50
mov byte [eax + 0x4dc191], 0x4e
mov byte [eax + 0x4dc192], 0x14
mov byte [eax + 0x4dc193], 1
add eax, 4
mov dword [0x44d710], eax
or dword [ebp - 0x844], 2
sub esp, 8
mov ecx, dword [ebp + 0x18]
mov edx, 0
mov dl, byte [ecx + 0x11]
push edx
add eax, 0x4dc190
push eax
call fcn.0040e517
mov edx, dword [0x44d710]
add edx, 8
mov dword [0x44d710], edx
add esp, 8
mov esi, dword [ebp + 0x18]
mov eax, 0
mov al, byte [esi + 0x10]
push eax
add edx, 0x4dc190
push edx
call fcn.0040e517
add dword [0x44d710], 8
add esp, 0x10
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x36
cmp eax, dword [0x4e02a0]
jle 0x4136ec
sub esp, 8
push 0x2bf
push 0x412f1c
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x54
mov byte [eax + 0x4dc191], 0x46
mov byte [eax + 0x4dc192], 0x1a
mov byte [eax + 0x4dc193], 1
mov byte [eax + 0x4dc194], 0xe
add eax, 5
mov dword [0x44d710], eax
or dword [ebp - 0x844], 0x80
sub esp, 8
mov edx, dword [ebp + 0x18]
push dword [edx + 0x1c]
add eax, 0x4dc190
push eax
call fcn.004053c1
mov eax, dword [0x44d710]
add eax, 7
mov dword [0x44d710], eax
add esp, 8
mov ecx, dword [ebp + 0x18]
push dword [ecx + 0x18]
add eax, 0x4dc190
push eax
call fcn.004053c1
mov eax, dword [0x44d710]
add eax, 7
mov dword [0x44d710], eax
add esp, 8
mov esi, dword [ebp + 0x18]
push dword [esi + 0x20]
add eax, 0x4dc190
push eax
call fcn.004053c1
mov eax, dword [0x44d710]
add eax, 7
mov dword [0x44d710], eax
add esp, 0x10
test dword [ebp + 0x1c], 1
je 0x4137f1
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x20
cmp eax, dword [0x4e02a0]
jle 0x4137c1
sub esp, 8
push 0x2d9
push 0x412f1f
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x52
mov byte [eax + 0x4dc191], 0x45
mov byte [eax + 0x4dc192], 4
mov byte [eax + 0x4dc193], 1
add eax, 4
mov dword [0x44d710], eax
or dword [ebp - 0x844], 0x40
test dword [ebp + 0x1c], 2
je 0x413875
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x28
cmp eax, dword [0x4e02a0]
jle 0x41382b
sub esp, 8
push 0x2e3
push 0x412f22
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x50
mov byte [eax + 0x4dc191], 0x4c
mov byte [eax + 0x4dc192], 0xc
mov byte [eax + 0x4dc193], 1
add eax, 4
mov dword [0x44d710], eax
sub esp, 8
push 0
add eax, 0x4dc190
push eax
call fcn.0040e517
add dword [0x44d710], 8
or dword [ebp - 0x844], 0x20
add esp, 0x10
test dword [ebp + 0x1c], 4
je 0x4138f9
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x28
cmp eax, dword [0x4e02a0]
jle 0x4138af
sub esp, 8
push 0x2f0
push 0x412f25
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x43
mov byte [eax + 0x4dc191], 0x4c
mov byte [eax + 0x4dc192], 0xc
mov byte [eax + 0x4dc193], 1
add eax, 4
mov dword [0x44d710], eax
sub esp, 8
push 0
add eax, 0x4dc190
push eax
call fcn.0040e517
add dword [0x44d710], 8
or dword [ebp - 0x844], 0x10
add esp, 0x10
cmp dword [0x44a180], 0
je 0x413ac3
mov edx, dword [ebp + 0x18]
mov ax, word [edx + 6]
and eax, 0xfffff000
cmp ax, 0x8000
jne 0x413ac3
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
lea edi, [ebp - 0x828]
sub esp, 8
push 0x412f28
push dword [ebp + 8]
call fcn.00449a00
mov dword [ebp - 0x84c], eax
add esp, 0x10
test eax, eax
je 0x413a03
push eax
push 0x10
push 1
push edi
call fcn.00449ac0
cmp eax, 0x10
setne al
and eax, 0xff
dec eax
and eax, 1
mov dword [ebp - 0x85c], eax
mov eax, edi
mov edi, 0x412ebe
mov ecx, 8
cld
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
setne al
and eax, 0xff
dec eax
and dword [ebp - 0x85c], eax
lea eax, [ebp - 0x820]
mov dword [esp], eax
call fcn.0040e546
mov dword [ebp - 0x850], eax
mov eax, 0
mov al, byte [ebp - 0x81c]
mov dword [ebp - 0x854], eax
mov dl, byte [ebp - 0x81b]
and edx, 0xff
mov edi, edx
add esp, 4
push dword [ebp - 0x84c]
call fcn.00449970
add esp, 0x10
jmp 0x413a1c
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x854], 0
mov edi, 0
cmp dword [ebp - 0x85c], 0
je 0x413ac3
mov eax, dword [0x44d710]
sub eax, dword [0x44d714]
add eax, dword [0x44d718]
add eax, 0x2c
cmp eax, dword [0x4e02a0]
jle 0x413a5a
sub esp, 8
push 0x332
push 0x412f2b
call fcn.00412c20
add esp, 0x10
mov eax, dword [0x44d710]
mov byte [eax + 0x4dc190], 0x5a
mov byte [eax + 0x4dc191], 0x46
mov byte [eax + 0x4dc192], 0x10
mov byte [eax + 0x4dc193], 1
mov byte [eax + 0x4dc194], 0x70
mov byte [eax + 0x4dc195], 0x7a
mov cl, byte [ebp - 0x854]
mov byte [eax + 0x4dc196], cl
mov edx, edi
mov byte [eax + 0x4dc197], dl
add eax, 8
mov dword [0x44d710], eax
sub esp, 8
push dword [ebp - 0x850]
add eax, 0x4dc190
push eax
call fcn.0040e517
add dword [0x44d710], 8
add esp, 0x10
test dword [ebp + 0x1c], 8
je 0x413ae1
sub esp, 8
push 0x346
push 0x412f2e
call fcn.00412c20
add esp, 0x10
mov cl, byte [ebp - 0x844]
mov esi, dword [ebp - 0x840]
mov byte [esi + 0x4dc190], cl
cmp dword [0x44d714], 0
je 0x413b1c
sub esp, 8
mov edx, dword [0x44d714]
mov eax, dword [0x44d710]
sub eax, edx
push eax
add edx, 0x4dc188
push edx
call fcn.0040e517
add esp, 0x10
sub esp, 0xc
push dword [0x44d710]
call fcn.0040a53c
mov dword [ebx + 0x128], eax
mov eax, dword [0x44d710]
mov dword [ebx + 0x130], eax
add esp, 0x10
cmp dword [0x44d71c], 0
jne 0x413b4e
mov eax, dword [0x44d710]
jmp 0x413b53
mov eax, dword [0x44d71c]
mov dword [ebx + 0x12c], eax
sub esp, 4
push dword [0x44d710]
push 0x4dc190
push dword [ebx + 0x128]
call fcn.00449a70
mov eax, dword [0x44d710]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret