Function at 0x40e9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ba02
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x1c], edi
call fcn.00412950
mov dword [esp + 0x14], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1d4], ebx
call fcn.004101f0
movzx eax, word [ebp + 8]
sub eax, ebx
je 0x40ec13
sub eax, 1
jne 0x40ec7e
push 0x103
lea ecx, [esp + 0xb9]
push ebx
push ecx
mov byte [esp + 0xc0], bl
call fcn.00436440
lea eax, [esp + 0xc0]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40ea75
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x40ea62
jmp 0x40ea79
cmp edx, ebx
jne 0x40ea7c
sub eax, 1
push str.Update
lea edx, [esp + 0xb8]
push edx
mov byte [eax], bl
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0xa
mov esi, 0xf
push str.update.exe
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.004024f0
mov byte [esp + 0x1d0], 2
lea eax, [esp + 0xb4]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40eae0
sub eax, edi
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x44]
call fcn.004024f0
mov byte [esp + 0x1d0], 3
push ebx
push 0x4526a4
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.004024f0
mov byte [esp + 0x1d0], 4
push 0xa
push str.update.exe
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004024f0
lea ecx, [esp + 0xac]
mov byte [esp + 0x1d0], 5
mov edi, dword [esp + 0x14]
push ecx
lea ebx, [esp + 0x78]
lea esi, [esp + 0x14]
call fcn.00410f90
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x40eb77
lea edx, [esp + 0x10]
cmp eax, edx
je 0x40eb7c
call fcn.00432c1e
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [esi + 4], edi
push eax
setne cl
lea edx, [esp + 0x24]
lea edi, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.0040ccf0
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x40ebb4
mov eax, dword [esp + 0x5c]
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x38], esi
mov edi, 0xf
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x40ebd8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x40ebf7
mov edx, dword [esp + 0x40]
push edx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x40ec7e
mov eax, dword [esp + 0x78]
push eax
jmp 0x40ec76
mov eax, esi
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40ec31
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x98]
call fcn.004024f0
push edi
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d8], 1
call fcn.0040dbc0
cmp dword [esp + 0xa8], 0x10
jb 0x40ec7e
mov edx, dword [esp + 0x94]
push edx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x1d0], 0xffffffff
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0xbc]
push eax
mov edi, ecx
call fcn.00412230
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00416c01
add esp, 4
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.004322f2
mov esp, ebp
pop ebp
ret 4